Package gen :: Package lib :: Module datebase :: Class DateBase
[frames] | no frames]

Class DateBase

source code


Base class for storing date information.

Instance Methods
 
__init__(self, source=None)
Create a new DateBase, copying from source if not None.
source code
 
serialize(self, no_text_date=False)
Convert the object to a serialized tuple of data.
source code
 
unserialize(self, data)
Convert a serialized tuple of data to an object.
source code
Date
get_date_object(self)
Return the Date object associated with the DateBase.
source code
 
set_date_object(self, date)
Set the Date object associated with the DateBase.
source code
Method Details

__init__(self, source=None)
(Constructor)

source code 

Create a new DateBase, copying from source if not None.

Parameters:
  • source (DateBase) - Object used to initialize the new object

get_date_object(self)

source code 

Return the Date object associated with the DateBase.

Returns: Date
Returns a DateBase Date instance.

set_date_object(self, date)

source code 

Set the Date object associated with the DateBase.

Parameters:
  • date (Date) - Date instance to be assigned to the DateBase