|
|
__init__(self,
source=None)
Creates a new Date instance. |
source code
|
|
|
|
serialize(self,
no_text_date=False)
Convert to a series of tuples for data storage |
source code
|
|
|
|
unserialize(self,
data)
Load from the format created by serialize |
source code
|
|
|
|
copy(self,
source)
Copy all the attributes of the given Date instance to the present
instance, without creating a new object. |
source code
|
|
|
|
|
|
|
is_equal(self,
other)
Return 1 if the given Date instance is the same as the present
instance IN ALL REGARDS. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
set_modifier(self,
val)
Sets the modifier for the date. |
source code
|
|
|
|
|
|
|
set_quality(self,
val)
Sets the quality selected for the date. |
source code
|
|
|
|
|
|
|
set_calendar(self,
val)
Sets the calendar selected for the date. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_year_valid(self)
Returns true if the year is valid |
source code
|
|
|
|
|
|
|
get_month_valid(self)
Returns true if the month is valid |
source code
|
|
|
|
|
|
|
get_day_valid(self)
Returns true if the day is valid |
source code
|
|
|
|
get_valid(self)
Returns true if any part of the date is valid |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_text(self)
Returns the text value associated with an invalid date. |
source code
|
|
|
|
set(self,
quality,
modifier,
calendar,
value,
text=None)
Sets the date to the specified value. |
source code
|
|
|
|
convert_calendar(self,
calendar)
Converts the date from the current calendar to the specified
calendar. |
source code
|
|
|
|
set_as_text(self,
text)
Sets the day to a text string, and assigns the sort value to
zero. |
source code
|
|
|
|
set_text_value(self,
text)
Sets the text string to a given text. |
source code
|
|
|
|
is_empty(self)
Returns True if the date contains no information (empty text). |
source code
|
|
|
|
is_compound(self)
Returns True if the date is a date range or a date span. |
source code
|
|
|
|
|