Module:Date time/doc
Appearance
![]() | This is a documentation subpage for Module:Date time. It may contain usage information, categories and other content that is not part of the original module page. |
Module:Date time provides functions for validating and formatting dates in templates such as {{Start date}}, {{End date}}, {{Start date and age}}, and {{End date and age}}.
It handles:
- Validation of date components (year, month, day)
- Validation of time components (hour, minute, second)
- Timezone formatting and validation
- Generation of appropriate hCalendar microformat markup
- "time-ago" calculations
Returns an error message and category if validation fails.
Usage
[edit]{{#invoke:Date time|generate_date}}
{{#invoke:Date time|validate_date_time}}