Package Products :: Package ZenUtils :: Module Time |
[hide private]
[frames] | no frames]

# Module Time

source code

Time

Utilities for consistent manipulation of Dates and Time. All simple code should migrate here, and without dependencies on anything other than standard python libraries.

$Id:$

Functions | [hide private]
_maybenow(gmtSecondsSince1970) | source code
LocalDateTime(gmtSecondsSince1970=None) | source code
LocalDateTimeFromMilli(milliseconds) | source code
isoDateTime(gmtSecondsSince1970=None) | source code
isoDateTimeFromMilli(milliseconds) | source code
LocalDateTimeSecsResolution(gmtSecondsSince1970=None) | source code
USDate(gmtSecondsSince1970=None) | source code
ParseUSDate(mdy) | source code
YYYYMMDDHHMMS(gmtSecondsSince1970=None) | source code
HHMMSS(gmtSecondsSince1970=None) | source code
SaveMessage() | source code
Duration(seconds) | source code
getBeginningOfDay(gmtSecondsSince1970=None) | source code
getEndOfDay(gmtSecondsSince1970=None) | source code
isoToTimestamp(value) converts a iso time string that does not contain a timezone, ie. | source code

Function Details | [hide private]

### LocalDateTimeFromMilli(milliseconds) | source code
Parameters: `milliseconds` - : UTC timestamp in milliseconds

### isoDateTimeFromMilli(milliseconds) | source code
Parameters: `milliseconds` - : UTC timestamp in milliseconds

### isoToTimestamp(value) | source code
converts a iso time string that does not contain a timezone, ie. YYYY-MM-DD HH:MM:SS, to a timestamp in seconds since 1970; uses the system timezone