Arena
1.0
A content management system
|
A utility class that provides routines to handle time. More...
Public Member Functions | |
def | now |
Return the current local time as the number of seconds since the Unix epoch. More... | |
def | gmt |
Return the current GMT time. | |
def | zoneOffset |
Return the current local time zone offset expressed as: +/-(HH:MM) | |
def | zone |
Return the current local time zone. | |
def | localString |
Format the given local time according to the specified format. More... | |
def | gmtString |
Formats the given GMT time according to the specified format. More... | |
def | measureFromSeconds |
Return the number of seconds specified as a string of the form: XX years, XXX days, XX hours, XX minutes and XX seconds | |
Static Public Attributes | |
dictionary | formatGMT |
Ways to format Greenwich Mean Time. More... | |
dictionary | formatLocal |
Ways to format local time. More... | |
string | formatTZOffset = "{hours}:{minutes}" |
The format used to create a representation of the time zone offset. | |
dictionary | formatMeasurements |
The format used to create a representation of the passage of time. More... | |
dictionary | measuringOrder |
The order in which to measure time. More... | |
A utility class that provides routines to handle time.
def Library.String.Utilities.Time.gmtString | ( | Self, | |
when = None , |
|||
fmt = "" |
|||
) |
Formats the given GMT time according to the specified format.
The fmt
parameter can specify a format string to pass to strftime()
, or it can name one of the pre-defined formats specified in Time.formatGMT. If fmt
is not given, a "readable" version of GMT time is returned.
when
should be time specified must be a tuple or struct_time that represents a time as returned by gmtime()
or localtime()
. If no time is given, the current system time is used.
def Library.String.Utilities.Time.localString | ( | Self, | |
when = None , |
|||
fmt = "" |
|||
) |
Format the given local time according to the specified format.
The fmt
parameter can specify a format string to pass to strftime()
, or it can name one of the pre-defined formats specified in Time.formatLocal. If fmt
is not given, a "readable" version of local time is returned.
when
should be time specified must be a tuple or struct_time that represents a time as returned by gmtime()
or localtime()
. If no time is given, the current system time is used.
def Library.String.Utilities.Time.now | ( | Self | ) |
Return the current local time as the number of seconds since the Unix epoch.
|
static |
Ways to format Greenwich Mean Time.
|
static |
Ways to format local time.
|
static |
The format used to create a representation of the passage of time.
|
static |