cf.Coordinate.asdatetime

Coordinate.asdatetime()[source]

Change the internal representation of data array elements from numeric reference times to datatime-like objects.

The change is carried out in place.

If the calendar has not been set then the CF default calendar will be used and the units will be updated accordingly.

If the internal representations are already datatime-like objects then no change occurs.

Returns :None

See also

asreftime

Examples

>>> f.asdatetime()

Previous topic

cf.Coordinate.asauxiliary

Next topic

cf.Coordinate.asdimension

This Page