A converter from strings with relative times to seconds
Methods
__init__() | |
log_error(error[, message]) | Logs the error in bold red |
Attributes
day_expression | A compiled regex to extract the number of days | ||
hour_expression | A compiled regex to extract the number of hours | ||
logger |
|
||
minute_expression | A compiled regex to extract the number of minutes | ||
month_expression | A compiled regex to match a month (check for ‘mo’ only) | ||
second_expression | A compiled regex to extract the number of seconds | ||
week_expression | A compiled regex to extract a number of weeks | ||
year_expression | A compiled regex to match a year (only checks for y) |
Logs the error in bold red
Param: |
|
---|
A compiled regex to extract the number of days
A compiled regex to extract the number of hours
Returns: | A logging object. |
---|
A compiled regex to extract the number of minutes
A compiled regex to match a month (check for ‘mo’ only)
A compiled regex to extract the number of seconds
A compiled regex to extract a number of weeks
A compiled regex to match a year (only checks for y)