cf.Field.asdatetime

Field.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.

See also

asreftime

Returns:None
Examples:
>>> f.asdatetime()

Previous topic

cf.Field.anchor

Next topic

cf.Field.asreftime

This Page