Expand description
Date validation and conversion utilities for Things 3
This module provides safe date conversion between Things 3’s internal format (seconds since 2001-01-01) and standard date types, along with comprehensive validation to ensure date consistency.
Enums§
- Date
Conversion Error - Errors that can occur during date conversion
- Date
Validation Error - Errors that can occur during date validation
Functions§
- add_
days - Add days to a date with overflow checking
- format_
date_ for_ display - Format a date for display, handling None gracefully
- is_
date_ in_ future - Check if a date is in the future
- is_
date_ in_ past - Check if a date is in the past
- is_
valid_ things_ timestamp - Check if a Things 3 timestamp is within a reasonable range
- parse_
date_ from_ string - Parse a date from a string, supporting multiple formats
- safe_
naive_ date_ to_ things_ timestamp - Convert NaiveDate to Things 3 timestamp with validation
- safe_
things_ date_ to_ naive_ date - Convert Things 3 timestamp to NaiveDate with comprehensive error handling
- validate_
date_ range - Validate that a deadline is not before a start date