Module todo_lib::todotxt [−][src]
Structs
Recurrence | |
Task |
Enums
Period |
Constants
DUE_TAG | |
DUE_TAG_FULL | |
NO_PRIORITY | Empty priority - means a todo do not have any priority set |
REC_TAG | |
REC_TAG_FULL | |
THR_TAG | |
THR_TAG_FULL |
Functions
days_in_month | |
extract_contexts | |
extract_projects | |
extract_tags | |
format_date | |
format_priority | |
parse_date | Input string must a date in format "Year-Month-Day". If a date is incorrect one (e.g., month is greater than 12), an error is returned. Special case: if "Day" is greater than the number of days in a month, but it is between 1 and 31, the day is set to the last day of the month. Example, "2019-02-30" becomes "2019-02-28". |
parse_priority | Parse a string as a priority, returns an error if the string is not a valid priority. A string must be a capital Latin letter enclosed in parentheses. |
replace_word | Replaces a word with another one. If |
split_tag | Split tag into its name and value if possible. Input string must be a correct tag: "name:value", where name contains only alpha-numeric characters(Unicode letters are supported), and value is a non-empty string. If a string is incorrect tag, the function returns None. |