Change the internal representation of data array elements from datatime-like objects to numeric reference times.
If the calendar has not been set then the default CF calendar will be used and the units’ and the calendar attribute will be updated accordingly.
If the internal representations are already numeric reference times then no change occurs.
See also
Parameters: |
|
---|---|
Returns: | out : cf.Data |
Examples: |
>>> d.asreftime()