A timedeltas extension
RelativeTime constructor
Param: |
|
---|
RelativeTime constructor
Param: |
|
---|
Methods
__init__([source]) | RelativeTime constructor |
get_number(*args, **kwargs) | |
log_error(error[, message]) | Logs the error in bold red |
populate_fields() | populates the time fields with values (e.g. self.minutes) |
reset() | Resets the attributes (undoes populate_fields) |
total_seconds(*args, **kwargs) |
Attributes
days | |||
logger |
|
||
microseconds | |||
seconds | |||
source |
|
||
time_map | A relative time map instance to parse the source. |
Logs the error in bold red
Param: |
|
---|
populates the time fields with values (e.g. self.minutes)
Resets the attributes (undoes populate_fields)
Returns: | A logging object. |
---|
Returns: | the source string |
---|
A relative time map instance to parse the source.