obspy.core.utcdatetime.UTCDateTime.toordinal
- UTCDateTime.toordinal()[source]
Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
See
datetime.datetime.toordinal()
.- Returns
int
Example
>>> dt = UTCDateTime(2012, 1, 1) >>> dt.toordinal() 734503