View source for Module:Date/example

MyWikiBiz, Author Your Legacy — Tuesday July 08, 2025
Jump to navigationJump to search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, vuser.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

-- Examples showing how to use [[Module:Date]]. See the talk page for output.
local Date = require('Module:Date')._Date
local show -- function defined below to display results
-- A date can be constructed using various input formats.
local function make_a_date()
show('Make a date')
local same_dates = {
Date(2016, 3, 9),
Date('2016-03-09'),
Date('2016-3-9'),
Date('9 March 2016'),
Date('09 mar 2016'),
Date('MAR 09 2016'),
Date('March 9, 2016'),
Date('March 9, 2016 CE'),
Date('March 9, 2016 A.D.'),
Date('3:45 pm 9 March 2016'),
Date('3:45 p.m. 9 March 2016'),
Date(2016, 3, 9, 15, 45),
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:Date/example.