Jump to content

Module:Date time/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 09:27, 17 March 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


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