Module v.c.e.extime

Part of vmc.contrib.epsilon

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.
def sanitizeStructTime(struct):
Convert struct_time tuples with possibly invalid values to valid ones by substituting the closest valid value.
def _timedeltaToSignHrMin(offset):

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 "+".
def _timedeltaToSeconds(offset):

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
35199
This allows you to:
>>> import epsilon.extime
>>> epsilon.extime._timedeltaToSeconds(td)
99999999.0
Parametersoffseta datetime.timedelta representing an interval that we wish to know the total number of seconds for.
Returnsa number of seconds (type: float )
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.