Jump to content

Module:Date time/doc: Difference between revisions

From The Republic Wiki
en>Gonnym
No edit summary
 
Richard470l (talk | contribs)
m 1 revision imported: templates
 
(No difference)

Latest revision as of 18:25, 25 September 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[edit source]

Tracking categories[edit source]

Cookies help us deliver our services. By using our services, you agree to our use of cookies.