Package haizea :: Package core :: Module leases :: Class Timestamp
[hide private]
[frames] | no frames]

Class Timestamp

source code


An exact point in time.

This class is just a wrapper around three DateTimes. When dealing with timestamps in Haizea (such as the requested starting time for a lease), we want to keep track not just of the requested timestamp, but also the scheduled timestamp (which could differ from the requested one) and the actual timestamp (which could differ from the scheduled one).

Instance Methods [hide private]
 
__init__(self, requested)
Constructor
source code
 
__repr__(self)
Returns a string representation of the Duration
source code

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

Class Variables [hide private]
  UNSPECIFIED = 'Unspecified'
  NOW = 'Now'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, requested)
(Constructor)

source code 

Constructor

Argument: requested -- The requested timestamp

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Returns a string representation of the Duration

Overrides: object.__repr__