Convert the internal representation of data array elements to date-time objects.
Only applicable to fields with reference time units.
If the calendar has not been set then the CF default calendar will be used and the units will be updated accordingly.
See also
Examples 1: |
---|
>>> g = f.asdatetime()
Parameters: |
|
---|---|
Returns: | out : cf.Field |
Examples 2: |
>>> t.asreftime().dtype
dtype('float64')
>>> t.asdatetime().dtype
dtype('O')