NCL Home > Documentation > Functions > Date routines

time_to_newtime_fix

Change a "udunits" recognized time unit to a new (different) "udunits" recognized time unit (temporary function; see the 6.4.0 release notes for details).

Available in version 6.4.0 and later.

Prototype

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"  ; This library is automatically loaded
                                                             ; from NCL V6.2.0 onward.
                                                             ; No need for user to explicitly load.

	function time_to_newtime_fix (
		time              : numeric,  ; float or double
		new_time_unit [1] : string    
	)

	return_val [dimsizes(time)] :  double or float

Arguments

time

new_time_unit

Description

This is a temporary function with the same calling sequence as time_to_newtime. It is being provided for user test purposes only and potentially as a replacement function. See the 6.4.0 release notes for details. A decision will be made about this function in a future release of NCL.