Jump to content

Module:Date time/doc: Difference between revisions

From Wikipedia, the free encyclopedia
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 Wikipedia templates such as {{tl|Start date}}, {{tl|End date}}, {{tl|Start date and age}}, and {{tl|End date and age}}.
[[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

Tracking categories