Module api :: Class Date
[hide private]
[frames] | no frames]

Class Date
source code

object --+
         |
        Date

wraps a timestamp, providing a datetime instance as attribute.

Instance Methods [hide private]
  __init__(self, timestamp)
  __repr__(self)
repr(x)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]
FORMAT  
PATTERN  

Inherited from object: __class__


Method Details [hide private]

__init__(self, timestamp)
(Constructor)

source code 
Parameters:
  • timestamp - a string representing a timestamp in the following format: 2006-05-14T18:45:11Z
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

FORMAT

Value:
'%Y-%m-%dT%H:%M:%SZ'                                                   
      

PATTERN

Value:
([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})Z