Home
Random
Log in
Settings
About The Republic Wiki
Disclaimers
The Republic Wiki
Search
Editing
Module:Date time/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
{{Module rating|release}} {{High-use}} {{Lua|Module:Arguments|Module:Time ago}} [[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: * 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 == * {{mlx|Date time|generate_date}} * {{mlx|Date time|validate_date_time}} == Tracking categories == * {{Category link with count|Pages using Module:Date time with invalid values}} <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Time, date and calendar modules]] [[Category:Modules that add a tracking category]] }}</includeonly> <noinclude> [[Category:Module documentation pages]] </noinclude>
Summary:
Please note that all contributions to The Republic Wiki are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see
The Republic Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Category link with count
(
edit
)
Template:High-use
(
edit
)
Template:Lua
(
edit
)
Template:Mlx
(
edit
)
Template:Module link expanded
(
edit
)
Template:Module rating
(
edit
)
Template:Namespace detect
(
edit
)
Template:Ombox
(
edit
)
Template:Template link
(
edit
)
Template:Template rating
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Effective protection level
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Namespace detect
(
edit
)
Module:Namespace detect/config
(
edit
)
Module:Namespace detect/data
(
edit
)
Module:Separated entries
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/D
(
edit
)
Module:Yesno
(
edit
)