Package coro :: Package clocks :: Module tsc_time :: Class Time
[hide private]
[frames] | no frames]

Class Time

object --+
         |
        Time
Known Subclasses:

Base time object.

Time object support the following operations:

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
as_posix_fsec(...)
Return the time as POSIX seconds (a floating-point number).
 
as_posix_sec(...)
Return the time as POSIX seconds (an integer).
 
as_posix_usec(...)
Return the time as POSIX microseconds (a long).
 
ctime(...)
Return the time as a string.
 
gmtime(...)
Return a Python time-tuple in UTC.
 
localtime(...)
Return a Python time-tuple in the local timezone.
 
mkstr_local(...)
Convert time to a string in the local timezone.
 
mkstr_utc(...)
Convert time to a string in UTC.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  tsc
: The time in TSC.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__

as_posix_fsec(...)

 
Return the time as POSIX seconds (a floating-point number).
Returns:
Returns a float as POSIX seconds.

as_posix_sec(...)

 
Return the time as POSIX seconds (an integer).
Returns:
Returns an integer as POSIX seconds.

as_posix_usec(...)

 
Return the time as POSIX microseconds (a long).
Returns:
Returns a long as POSIX microseconds.

ctime(...)

 

Return the time as a string.

This returns the time as a classic C-style 24-character time string in the local timezone in the format 'Sun Jun 20 23:21:05 1993'. This does not include a trailing newline like C does.

Returns:
Returns a string of the local time.

gmtime(...)

 
Return a Python time-tuple in UTC.
Returns:
Returns a time.struct_time time-tuple in UTC.

localtime(...)

 
Return a Python time-tuple in the local timezone.
Returns:
Returns a time.struct_time time-tuple in the local timezone.

mkstr_local(...)

 
Convert time to a string in the local timezone.
Parameters:
  • format - : The format that you want the string as. See the strftime function in the time module for more details.
Returns:
Returns a string in the local timezone.

mkstr_utc(...)

 
Convert time to a string in UTC.
Parameters:
  • format - : The format that you want the string as. See the strftime function in the time module for more details.
Returns:
Returns a string in UTC.