propertime.utilities¶
Time manipulation utilities
Functions
|
Get a datetime object as if it was on the given time zone. |
|
Correct the DST of a datetime object, by re-creating it. |
|
Initialize a datetime object with the time zone in the proper way. |
|
Create a datetime object from epoch seconds. |
|
Create a datetime object from a string. |
|
Get the time zone offset, in seconds. |
Check if a datetime object is specified in an ambigous way on a given time zone |
|
Check that a datetieme object is consistent with its time zone (some conditions can lead to have summer time set in winter, or to end up in non-existent times as when changing DST). |
|
|
Check if the argument is numerical. |
|
Return the current time in datetime format. |
|
Return the current time in epoch seconds. |
|
Return the epoch seconds from a datetime object, with floating point for milliseconds/microseconds. |
|
Return the a string representation of a datetime object (as IS08601). |
|
Convert a string representation of a time zone to its pytz object, or do nothing if the argument is already a pytz time zone or tzoffset, or None. |