Search results
Results from the WOW.Com Content Network
This template takes a Julian day number and returns the date and time in same format generated by {{CURRENTTIMESTAMP}} magic word. The output of this template can then be formatted via the {{#time:}} parser function, which does not directly accept Julian day numbers.
-- The logic of PHP mktime is followed where m or d can be zero to mean-- the previous unit, and -1 is the one before that, etc.-- Positive values carry forward. local date if not (1 <= m and m <= 12) then date = Date (y, 1, 1) if not date then return end date = date + ((m-1).. 'm') y, m = date. year, date. month end local days_hms if not ...
Converts dates into a format used on Wikipedia Template parameters [Edit template data] Parameter Description Type Status date 1 Date to be formatted Example Jan 1, 2007 Date suggested format 2 Controls the date format for the result Default DMY Example MDY String suggested The above documentation is transcluded from Template:Date/doc. (edit | history) Editors can experiment in this template's ...
Generates a more readable output for timestamps in the format YYYYMMDDHHMMSS – as returned by the {{REVISIONTIMESTAMP}} magic word. For example, {{FRTS | 20230501215438}} is output as "2023-05-01 21:54:38". The template is equivalent to using the time function — For example {{#time: Y-m-d H:i:s | {{REVISIONTIMESTAMP}}}} — outputs 2024-02 ...
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate
Help:Time function, about using the #time parser function For the magic words with the same or similar names, see MediaWikiWiki:Help:Magic words § Date and time . Multiple units of time
Magic words (including parser functions, variables and behavior switches) are features of wiki markup that give instructions to Wikipedia's underlying MediaWiki software. For example, magic words can suppress or position the table of contents, disable indexing by external search engines, and produce output dynamically based on the current page or on user-defined conditional logic.
For dst rules that specify local event times, the timestamp is the sum of: timestamp = current year + dst_month + dst_day + dst_time (all in seconds) local time Adjust local time to UTC by subtracting utc_offset: timestamp = timestamp - utc_offset (in seconds) For dst_end timestamp, subtract an hour for DST timestamp = timestamp - 3600 (in ...