polyfemos.almanac.ordinal.Ordinal¶
-
class
polyfemos.almanac.ordinal.
Ordinal
(*args, **kwargs)[source]¶ Bases:
obspy.core.utcdatetime.UTCDateTime
A 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
UTCDateTime
for more information about theargs
andkwargs
-
static
range
(starttime, endtime, step=1)[source]¶ A static method
Alternatively,
starttime
andendtime
can be given as datatypes accepted byUTCDateTime
constructor.
-
shiftdays
(a)[source]¶ see
__iadd__()
-
utcdatetime
()[source]¶ - Return type
- Returns
returns the current
Ordinal
instance asUTCDateTime
Special Methods
-
__format__
(a)[source]¶ Adds a possibility to use python’s format function
>>> "{}".format(Ordinal)
- Parameters
a –
- Return type
- Returns
-