polyfemos.almanac.ordinal.Ordinal¶
-
class
polyfemos.almanac.ordinal.Ordinal(*args, **kwargs)[source]¶ Bases:
obspy.core.utcdatetime.UTCDateTimeA class for treating dates as years and days of the year, with a precicion of 1 day.
Public Methods
-
__init__(*args, **kwargs)[source]¶ If no arguments are given, returns the current date, at 12am UTC
see
UTCDateTimefor more information about theargsandkwargs
-
static
range(starttime, endtime, step=1)[source]¶ A static method
Alternatively,
starttimeandendtimecan be given as datatypes accepted byUTCDateTimeconstructor.
-
shiftdays(a)[source]¶ see
__iadd__()
-
utcdatetime()[source]¶ - Return type
- Returns
returns the current
Ordinalinstance asUTCDateTime
Special Methods
-
__format__(a)[source]¶ Adds a possibility to use python’s format function
>>> "{}".format(Ordinal)
- Parameters
a –
- Return type
- Returns
-