Extended date/time formatting and miscellaneous functionality.
See the class 'Time' for details.Function | sanitizeStructTime | Convert struct_time tuples with possibly invalid values to valid |
Class | FixedOffset | Undocumented |
Class | Time | An object representing a well defined instant in time. |
Return a (sign, hour, minute) triple for the offset described by timedelta.
sign is a string, either "+" or "-". In the case of 0 offset, sign is "+".Convert a datetime.timedelta instance to simply a number of seconds.
For example, you can specify purely second intervals with timedelta's constructor:
>>> td = datetime.timedelta(seconds=99999999)
but then you can't get them out again:
>>> td.seconds 35199This allows you to:
>>> import epsilon.extime >>> epsilon.extime._timedeltaToSeconds(td) 99999999.0
Parameters | offset | a datetime.timedelta representing an interval that we wish
to know the total number of seconds for.
|
Returns | a number of seconds (type: float ) |