Module:Date time/doc: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Module rating|release}} |
{{Module rating|release}} |
||
[[Module:Date time]] provides functions for validating and formatting dates in |
[[Module:Date time]] provides functions for validating and formatting dates in templates such as {{tl|Start date}}, {{tl|End date}}, {{tl|Start date and age}}, and {{tl|End date and age}}. |
||
It handles: |
It handles: |
Revision as of 09:27, 17 March 2025
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
{{#invoke:Date time|generate_date}}
{{#invoke:Date time|validate_date_time}}