CINXE.COM

Module:Date - Wikidata

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Module:Date - Wikidata</title> <script>(function(){var className="client-js";var cookie=document.cookie.match(/(?:^|; )wikidatawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"edee165a-1c08-4dae-b7d2-b31fe1afe4a9","wgCanonicalNamespace":"Module","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":828,"wgPageName":"Module:Date","wgTitle":"Date","wgCurRevisionId":791991603,"wgRevisionId":791991603,"wgArticleId":19181073,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":[ "Pages using the JsonConfig extension","Modules for general use","Modules subject to page protection"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"Scribunto","wgRelevantPageName":"Module:Date","wgRelevantArticleId":19181073,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikidata","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":10000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"personal","wgULSisCompactLinksEnabled":true,"wgVector2022LanguageInHeader":false,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q19963557", "wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","skins.vector.styles.legacy":"ready","jquery.makeCollapsible.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","codex-search-styles":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","skins.vector.legacy.js","wikibase.ui.entitysearch","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.Search","ext.gadget.ProtectionIndicators","ext.gadget.imagelinks","ext.gadget.formWizard","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init", "ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.wikimediaEvents.wikibase","ext.navigationTiming","ext.uls.compactlinks","ext.uls.interface","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=codex-search-styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cjquery.makeCollapsible.styles%7Cskins.vector.styles.legacy%7Cwikibase.client.init&amp;only=styles&amp;skin=vector"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//m.wikidata.org/wiki/Module:Date"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Module:Date&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikidata.png"> <link rel="icon" href="/static/favicon/wikidata.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikidata (en)"> <link rel="EditURI" type="application/rsd+xml" href="//www.wikidata.org/w/api.php?action=rsd"> <link rel="canonical" href="https://www.wikidata.org/wiki/Module:Date"> <link rel="license" href="/wiki/Wikidata:Copyright"> <link rel="alternate" type="application/atom+xml" title="Wikidata Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin-vector-legacy mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-828 ns-subject mw-editable page-Module_Date rootpage-Module_Date skin-vector action-view"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"><!-- CentralNotice --></div> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Module</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Date</span></h1> <div id="bodyContent" class="vector-body"> <div id="siteSub" class="noprint">From Wikidata</div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="moduleheader"><div style="float:right"><div style="position:relative"> <div style="width:100px;height:100px;border-radius:50%;background-color:#19198A"></div> <div style="position:absolute;top:40px;color:#fff;font-family:Helvetica,Arial,sans-serif;font-weight:bold;font-size:52.5px;line-height:52.5px;">Lua</div> <div style="width:26.7px;height:26.7px;border-radius:50%;background-color:#fff;position:absolute;top:13.138699525547px;left:60.161300474453px"></div> </div></div><style data-mw-deduplicate="TemplateStyles:r1765858490">.mw-parser-output .module-nav .tab1 a,.mw-parser-output .module-nav .tab2 a,.mw-parser-output .module-nav .tab3 a{display:inline-block;padding:0.8em;background-position:inherit;background-repeat:inherit;border-right:1px solid rgba(0,0,0,0.13)}.mw-parser-output .module-nav .tab1 a{background-image:linear-gradient(to bottom,#f2f6f8 0%,#d8e1e7 50%,#c3d4dd 100%)}.mw-parser-output .module-nav .tab2 a{background-image:linear-gradient(to bottom,#ebf7de 0%,#cee0bc 100%)}.mw-parser-output .module-nav .tab3 a{background-image:linear-gradient(to bottom,#fefcea 0%,#ede3a6 100%)}</style> <span class="module-nav"> <span class="tab1"><a class="mw-selflink-fragment" href="#com-module-code">Code</a></span><span class="tab1"><a href="/w/index.php?title=Module_talk:Date&amp;action=edit&amp;redlink=1" class="new" title="Module talk:Date (page does not exist)">Discussion</a></span><span class="tab1"><a class="external text" href="https://www.wikidata.org/w/index.php?title=Special:WhatLinksHere/:Module:Date&amp;limit=999">Links</a></span><span class="tab1"><a class="external text" href="https://templatecount.toolforge.org/index.php?lang=wikidata&amp;namespace=828&amp;name=Date">Link count</a></span> <span class="tab2"><a href="/wiki/Special:PrefixIndex/Module:Date" title="Special:PrefixIndex/Module:Date">Subpages</a></span><span class="tab2"><a href="/wiki/Special:MyLanguage/Module:Date/doc" title="Special:MyLanguage/Module:Date/doc">Documentation</a></span><span class="tab2"><a href="/w/index.php?title=Module:Date/testcases&amp;action=edit&amp;redlink=1" class="new" title="Module:Date/testcases (page does not exist)">Tests</a></span><span class="tab2"><a href="/w/index.php?title=Module_talk:Date/testcases&amp;action=edit&amp;redlink=1" class="new" title="Module talk:Date/testcases (page does not exist)">Results</a></span><span class="tab2"><a href="/w/index.php?title=Module:Date/sandbox&amp;action=edit&amp;redlink=1" class="new" title="Module:Date/sandbox (page does not exist)">Sandbox</a></span><span class="tab2"><a class="mw-selflink selflink">Live code</a></span> <span class="tab3"><a href="/wiki/Special:PrefixIndex/Module:" title="Special:PrefixIndex/Module:">All modules</a></span></span></div> <style data-mw-deduplicate="TemplateStyles:r2202362292">.mw-parser-output th.mbox-text,.mw-parser-output td.mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output td.mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output td.mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output td.mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output table.ambox{margin:0 10%;border:1px solid var(--border-color-base,#a2a9b1);border-left:10px solid var(--border-color-progressive,#36c);background-color:var(--background-color-interactive-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.ambox+table.ambox{margin-top:-1px}.mw-parser-output .ambox th.mbox-text,.mw-parser-output .ambox td.mbox-text{padding:0.25em 0.5em}.mw-parser-output .ambox td.mbox-image{padding:2px 0 2px 0.5em}.mw-parser-output .ambox td.mbox-imageright{padding:2px 0.5em 2px 0}.mw-parser-output table.ambox-notice{border-left:10px solid var(--border-color-progressive,#36c)}.mw-parser-output table.ambox-speedy{border-left:10px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.ambox-delete{border-left:10px solid var(--border-color-error,#b32424)}.mw-parser-output table.ambox-content{border-left:10px solid #f28500}.mw-parser-output table.ambox-style{border-left:10px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.ambox-move{border-left:10px solid #9932cc}.mw-parser-output table.ambox-protection{border-left:10px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.imbox{margin:4px 10%;border-collapse:collapse;border:3px solid var(--border-color-progressive,#36c);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output .imbox .mbox-text .imbox{margin:0 -0.5em;display:block}.mw-parser-output .mbox-inside .imbox{margin:4px}.mw-parser-output table.imbox-notice{border:3px solid var(--border-color-progressive,#36c)}.mw-parser-output table.imbox-speedy{border:3px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.imbox-delete{border:3px solid var(--border-color-error,#b32424)}.mw-parser-output table.imbox-content{border:3px solid #f28500}.mw-parser-output table.imbox-style{border:3px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.imbox-move{border:3px solid #9932cc}.mw-parser-output table.imbox-protection{border:3px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.imbox-license{border:3px solid #88a;background-color:#f7f8ff}.mw-parser-output table.imbox-featured{border:3px solid #cba135}.mw-parser-output table.cmbox{margin:3px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:#dfe8ff;box-sizing:border-box}.mw-parser-output table.cmbox-notice{background-color:#d8e8ff}.mw-parser-output table.cmbox-speedy{margin-top:4px;margin-bottom:4px;border:4px solid var(--border-color-error,#b32424);background-color:#ffdbdb}.mw-parser-output table.cmbox-delete{background-color:#ffdbdb}.mw-parser-output table.cmbox-content{background-color:#ffe7ce}.mw-parser-output table.cmbox-style{background-color:#fff9db}.mw-parser-output table.cmbox-move{background-color:#e4d8ff}.mw-parser-output table.cmbox-protection{background-color:#efefe1}.mw-parser-output table.ombox{margin:4px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.ombox-notice{border:1px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.ombox-speedy{border:2px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.ombox-delete{border:2px solid var(--border-color-error,#b32424)}.mw-parser-output table.ombox-content{border:1px solid #f28500}.mw-parser-output table.ombox-style{border:1px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.ombox-move{border:1px solid #9932cc}.mw-parser-output table.ombox-protection{border:2px solid var(--border-color-base,#a2a9b1)}.mw-parser-output table.tmbox{margin:4px 10%;border-collapse:collapse;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);min-width:80%;box-sizing:border-box}.mw-parser-output .tmbox.mbox-small{min-width:0}.mw-parser-output .mediawiki .mbox-inside .tmbox{margin:2px 0;width:100%}.mw-parser-output .mbox-inside .tmbox.mbox-small{line-height:1.5em;font-size:100%}.mw-parser-output table.tmbox-speedy{border:2px solid var(--border-color-error,#b32424);background-color:#fee7e6}.mw-parser-output table.tmbox-delete{border:2px solid var(--border-color-error,#b32424)}.mw-parser-output table.tmbox-content{border:2px solid #f28500}.mw-parser-output table.tmbox-style{border:2px solid var(--border-color-content-removed,#fc3)}.mw-parser-output table.tmbox-move{border:2px solid #9932cc}.mw-parser-output table.tmbox-protection{border:1px solid #c0c090}.mw-parser-output table.fmbox{clear:both;margin:0.2em 0;width:100%;border:1px solid var(--border-color-base,#a2a9b1);background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box}.mw-parser-output table.fmbox-system{background-color:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output table.fmbox-warning{border:1px solid #bb7070;background-color:#ffdbdb}.mw-parser-output table.fmbox-editnotice{background-color:transparent}html body.mediawiki .mw-parser-output .mbox-small{clear:right;float:right;margin:4px 0 4px 1em;box-sizing:border-box;width:238px;font-size:88%;line-height:1.25em}html body.mediawiki .mw-parser-output .mbox-small-left{margin:4px 1em 4px 0;box-sizing:border-box;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}</style><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/File:Green_tick.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Green_tick.svg/40px-Green_tick.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Green_tick.svg/60px-Green_tick.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Green_tick.svg/80px-Green_tick.svg.png 2x" data-file-width="600" data-file-height="600" /></a></span></td><td class="mbox-text">This module is rated as <a href="/wiki/Category:Modules_for_general_use" title="Category:Modules for general use">ready for general use</a>. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by <a href="https://en.wikipedia.org/wiki/en:Wikipedia:TESTCASES" class="extiw" title="w:en:Wikipedia:TESTCASES">sandbox testing</a> rather than repeated trial-and-error editing.</td></tr></tbody></table><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r2202362292"><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/File:Full-protection-shackle-block.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/12/Full-protection-shackle-block.svg/40px-Full-protection-shackle-block.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/12/Full-protection-shackle-block.svg/60px-Full-protection-shackle-block.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/12/Full-protection-shackle-block.svg/80px-Full-protection-shackle-block.svg.png 2x" data-file-width="512" data-file-height="512" /></a></span></td><td class="mbox-text">This module is <a href="/wiki/Category:Modules_subject_to_page_protection" title="Category:Modules subject to page protection">subject to page protection</a>. It is a <a href="https://en.wikipedia.org/wiki/en:Wikipedia:High-risk_templates" class="extiw" title="w:en:Wikipedia:High-risk templates">highly visible module</a> in use by a very large number of articles, or is <a href="https://en.wikipedia.org/wiki/en:Wikipedia:SUBST" class="extiw" title="w:en:Wikipedia:SUBST">substituted</a> very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is is <a href="https://en.wikipedia.org/wiki/en:Wikipedia:PROTECT" class="extiw" title="w:en:Wikipedia:PROTECT">protected</a> from editing.</td></tr></tbody></table> <p><br /> </p> <div class="mw-heading mw-heading2"><h2 id="Summary">Summary</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-1" title="Edit section: Summary"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This module is intended for creating of date strings in any language. It serves as a back-end of <code>&#123;&#123;<a href="/wiki/Template:Date" title="Template:Date">Date</a>&#125;&#125;</code> template. See documentation of that template for documentation. </p><p>The internationalization of the date formats can be found at <a href="https://commons.wikimedia.org/wiki/Data:DateI18n.tab" class="extiw" title="c:Data:DateI18n.tab">c:Data:DateI18n.tab</a> and <a href="https://commons.wikimedia.org/wiki/Data:I18n/MonthCases.tab" class="extiw" title="c:Data:I18n/MonthCases.tab">c:Data:I18n/MonthCases.tab</a>. <a href="/wiki/Module:DateI18n" title="Module:DateI18n">Module:DateI18n</a> is called from <a href="/wiki/Module:ISOdate" title="Module:ISOdate">Module:ISOdate</a>. </p> <div class="mw-heading mw-heading2"><h2 id="Using_this_module_from_templates">Using this module from templates</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-2" title="Edit section: Using this module from templates"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Date">Date</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-3" title="Edit section: Date"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This module should only be called from <code>&#123;&#123;<a href="/wiki/Template:Date" title="Template:Date">Date</a>&#125;&#125;</code> template. Please call that template to access this module. Also see <code>&#123;&#123;<a href="/wiki/Template:Date" title="Template:Date">Date</a>&#125;&#125;</code> template for full documentation </p><p>Usage: </p> <dl><dd><code>{{#invoke:DateI18n|Date|year=...|month=...|day=...|hour=...|minute=...|second=...|tzhour=...|tzmin=...|lang=...}}</code></dd></dl> <p>Parameters: </p> <dl><dt>year, month, day, hour, minute, second</dt> <dd>(most are optional) parameters specifying part of the date</dd> <dt>tzhour, tzmin</dt> <dd>(optional and rarely used) time zone offset from UTC</dd> <dt>lang</dt> <dd>(optional) language to be used to display the date. If not specified language of the user will be used</dd> <dt>class</dt> <dd>(optional) Allows setting of the HTML class of the time node where the date is included. This is useful for microformats. The default value is, for legacy reasons, "dtstart" (used by <a href="https://en.wikipedia.org/wiki/HCalendar" class="extiw" title="w:HCalendar">hCalendar</a>). See <a href="https://commons.wikimedia.org/wiki/Commons:Microformats_Project" class="extiw" title="c:Commons:Microformats Project">the microformats project</a>. "class=" will remove all metadata.</dd> <dt>case</dt> <dd>(optional) By default each language uses preferred form of the date, which typically has month in <a href="https://en.wikipedia.org/wiki/Nominative_case" class="extiw" title="en:Nominative case">nominative</a> or <a href="https://en.wikipedia.org/wiki/Genitive_case" class="extiw" title="en:Genitive case">genitive</a> <a href="https://en.wikipedia.org/wiki/Grammatical_case" class="extiw" title="en:Grammatical case">grammatical case</a>. With <i>case</i> parameter one can overwrite the preferred case with some other one used by a given language. Parser function {{#time}} stores <a href="https://en.wikipedia.org/wiki/Nominative_case" class="extiw" title="en:Nominative case">nominative</a> and <a href="https://en.wikipedia.org/wiki/Genitive_case" class="extiw" title="en:Genitive case">genitive</a> forms, others are stored in <a href="https://commons.wikimedia.org/wiki/Data:I18n/MonthCases.tab" class="extiw" title="c:Data:I18n/MonthCases.tab">c:Data:I18n/MonthCases.tab</a>. This functionality is mostly used by <a href="/wiki/Module:Complex_date" title="Module:Complex date">Module:Complex date</a>.</dd> <dt>trim_year</dt> <dd><i>trim_year</i> parameter</dd></dl> <p>Example: </p> <dl><dd><code>{{#invoke:DateI18n|Date|year=1990|month=Oct|day=01|lang=en}}</code> produces <span style="white-space:nowrap"><time class="dtstart" datetime="1990-10-01">1 October 1990</time></span></dd></dl> <div class="mw-heading mw-heading2"><h2 id="Using_this_module_from_Lua_code">Using this module from Lua code</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-4" title="Edit section: Using this module from Lua code"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>In order to use the functions in this module from another Lua module you first have to import this module. </p><p>Example: </p> <dl><dd><code>local DateMod = require('Module:DateI18n')</code></dd></dl> <div class="mw-heading mw-heading3"><h3 id="Date_2">_Date</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-5" title="Edit section: _Date"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Usage: </p> <dl><dd><code>date_string = DateMod._Date({year,month,day,hour,minute, second},lang)</code></dd></dl> <div class="mw-heading mw-heading2"><h2 id="I18n_tables">I18n tables</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-6" title="Edit section: I18n tables"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This module stores all the language specific settings in two files in "<a href="https://www.mediawiki.org/wiki/Help:Tabular_Data" class="extiw" title="mw:Help:Tabular Data">Data</a>" namespace: <a href="https://commons.wikimedia.org/wiki/Data:DateI18n.tab" class="extiw" title="c:Data:DateI18n.tab">Data:DateI18n.tab</a> and <a href="https://commons.wikimedia.org/wiki/Data:I18n/MonthCases.tab" class="extiw" title="c:Data:I18n/MonthCases.tab">Data:I18n/MonthCases.tab</a> </p> <div class="mw-heading mw-heading3"><h3 id="Data:DateI18n.tab"><a href="https://commons.wikimedia.org/wiki/Data:DateI18n.tab" class="extiw" title="c:Data:DateI18n.tab">Data:DateI18n.tab</a></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-7" title="Edit section: Data:DateI18n.tab"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Translation table with different forms of dates. Outputs are in the format used by <a href="https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time" class="extiw" title="mw:Help:Extension:ParserFunctions">{{#time}} parser function</a>. There are several date formats supported, which depend on the data provided </p> <dl><dd><table class="wikitable"> <caption>Date formats </caption> <tbody><tr> <th>Format string</th> <th>Meaning</th> <th>Comments </th></tr> <tr> <td>YMDHMS</td> <td>YYYY:MM:DD, HH:MM:SS format for year, month, day, hour, minutes, seconds</td> <td>Most items in the list use format created from YMD format with hour, minutes and seconds added with ", HH:MM:SS". All languages using this format do not have to be listed, as they default to English. </td></tr> <tr> <td>YMDHM</td> <td>YYYY:MM:DD, HH:MM format for year, month, day, hour, minutest</td> <td>Most items in the list use format created from YMD format with hour and minutes added with ", HH:MM". All languages using this format do not have to be listed, as they default to English. </td></tr> <tr> <td>YMD</td> <td>YYYY:MM:DD format for year, month, day</td> <td>The languages using the same format as English do not need to be listed. </td></tr> <tr> <td>YM</td> <td>YYYY:MM (year-month) format for year and month</td> <td>The languages using the same format as English do not need to be listed. </td></tr> <tr> <td>MD</td> <td>MM:DD (month-day) format for month and day</td> <td>The languages using the same format as English do not need to be listed. </td></tr> <tr> <td>Y</td> <td>YYYY (year only) format for year</td> <td>Most languages show year as a simple number, those do not have to be listed as they will default to English. </td></tr> <tr> <td>M</td> <td>month name only</td> <td>Most languages show year as a simple number, those do not have to be listed as they will default to English. </td></tr></tbody></table></dd></dl> <dl><dt>Special cases</dt></dl> <p>Some languages like French Catalan, Gallic or Basque use different form for year-month-day dates depending on the day of the month. the format of the <a href="https://www.mediawiki.org/wiki/Help:Tabular_Data" class="extiw" title="mw:Help:Tabular Data">Tabular Data</a> allowed only simple strings to be stored in multi-language arrays. In order to overcome that we stored data in strings that might look like <code>"{”default”:”j F Y”,”d01”:”j'&lt;sup&gt;er&lt;/sup&gt;' F Y”}"</code>. This string is converted to following json code by replacing ”-double-quotes with regular straight double-quotes </p> <div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="w"> </span><span class="nt">&quot;default&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;j F Y&quot;</span><span class="p">,</span> <span class="w"> </span><span class="nt">&quot;d01&quot;</span><span class="p">:</span><span class="w"> </span><span class="err">”j&#39;&lt;sup&gt;er&lt;/sup&gt;&#39;</span><span class="w"> </span><span class="err">F</span><span class="w"> </span><span class="err">Y&quot;</span> <span class="err">}</span> </pre></div> <p>than parsed and converted into Lua dictionary table. We convert day from the date into a key by adding "d" to a 2-digit integer representing day. If that key is in the dictionary than that form will be used otherwise we will use <i>default</i> form. The final step before passing it to <a href="https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##time" class="extiw" title="mw:Help:Extension:ParserFunctions">{{#time}} parser function</a> we will replace single quotes with double quotes which have special meaning for that function. </p> <div class="mw-heading mw-heading3"><h3 id="Data:I18n/MonthCases.tab"><span id="Data:I18n.2FMonthCases.tab"></span><a href="https://commons.wikimedia.org/wiki/Data:I18n/MonthCases.tab" class="extiw" title="c:Data:I18n/MonthCases.tab">Data:I18n/MonthCases.tab</a></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-8" title="Edit section: Data:I18n/MonthCases.tab"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><a href="https://en.wikipedia.org/wiki/Grammatical_case" class="extiw" title="en:Grammatical case">Grammatical cases</a> of month names in different languages used by <a href="/wiki/Module:DateI18n" title="Module:DateI18n">Module:DateI18n</a> and <a href="/wiki/Module:Complex_date" title="Module:Complex date">Module:Complex_date</a>. </p> <div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Module:DateI18n/doc&amp;action=edit&amp;section=T-9" title="Edit section: See also"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r2241526210">.mw-parser-output .navbox{border:1px solid var(--border-color-base,#a2a9b1);width:100%;margin:auto;clear:both;font-size:88%;text-align:center;padding:1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output th.navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.8em;border-color:#fdfdfd}.mw-parser-output .navbox th,.mw-parser-output .navbox-title{background:#ccccff}.mw-parser-output .navbox-abovebelow,.mw-parser-output th.navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background:#ddddff}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background:#e6e6ff}.mw-parser-output .navbox-even{background:#f7f7f7}.mw-parser-output .navbox-odd{background:transparent}.mw-parser-output table.navbox+table.navbox{margin-top:-1px}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output ol+table.navbox,.mw-parser-output ul+table.navbox{margin-top:0.5em}</style><table class="navbox mw-collapsible mw-collapsed" style="text-align: left; border: 1px solid silver; margin-top: 0.2em;"> <tbody><tr> <th style="background-color: #CFC"><div style="font-size:112%; margin-left:.4em;">Modules related to internationalization (i18n) of dates</div></th> </tr> <tr> <td style="border: solid 1px silver; padding: 8px; background-color: var(--background-color-base, #fff); color: inherit"><div style="font-size:112%;"><a href="/w/index.php?title=Template:DateRelatedModules&amp;action=edit&amp;redlink=1" class="new" title="Template:DateRelatedModules (page does not exist)">Template:DateRelatedModules</a></div></td> </tr> </tbody></table> <h2 id="Code" id="com-module-code">Code</h2><div class="mw-highlight mw-highlight-lang-lua mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span id="L-1"><a href="#L-1"><span class="linenos" data-line="1"></span></a><span class="cm">--[[ </span> </span><span id="L-2"><a href="#L-2"><span class="linenos" data-line="2"></span></a><span class="cm"> </span> </span><span id="L-3"><a href="#L-3"><span class="linenos" data-line="3"></span></a><span class="cm">This module is intended for processing of date strings.</span> </span><span id="L-4"><a href="#L-4"><span class="linenos" data-line="4"></span></a> </span><span id="L-5"><a href="#L-5"><span class="linenos" data-line="5"></span></a><span class="cm">Please do not modify this code without applying the changes first at Module:Date/sandbox and testing </span> </span><span id="L-6"><a href="#L-6"><span class="linenos" data-line="6"></span></a><span class="cm">at Module:Date/sandbox/testcases and Module talk:Date/sandbox/testcases.</span> </span><span id="L-7"><a href="#L-7"><span class="linenos" data-line="7"></span></a> </span><span id="L-8"><a href="#L-8"><span class="linenos" data-line="8"></span></a><span class="cm">Authors and maintainers:</span> </span><span id="L-9"><a href="#L-9"><span class="linenos" data-line="9"></span></a><span class="cm">* User:Parent5446 - original version of the function mimicking template:ISOdate</span> </span><span id="L-10"><a href="#L-10"><span class="linenos" data-line="10"></span></a><span class="cm">* User:Jarekt - original version of the functions mimicking template:Date and template:ISOyear</span> </span><span id="L-11"><a href="#L-11"><span class="linenos" data-line="11"></span></a> </span><span id="L-12"><a href="#L-12"><span class="linenos" data-line="12"></span></a><span class="cm">]]</span> </span><span id="L-13"><a href="#L-13"><span class="linenos" data-line="13"></span></a> </span><span id="L-14"><a href="#L-14"><span class="linenos" data-line="14"></span></a> </span><span id="L-15"><a href="#L-15"><span class="linenos" data-line="15"></span></a><span class="kd">local</span> <span class="n">p</span> <span class="o">=</span> <span class="p">{}</span> </span><span id="L-16"><a href="#L-16"><span class="linenos" data-line="16"></span></a> </span><span id="L-17"><a href="#L-17"><span class="linenos" data-line="17"></span></a><span class="c1">-- =======================================</span> </span><span id="L-18"><a href="#L-18"><span class="linenos" data-line="18"></span></a><span class="c1">-- === Dependencies ======================</span> </span><span id="L-19"><a href="#L-19"><span class="linenos" data-line="19"></span></a><span class="c1">-- =======================================</span> </span><span id="L-20"><a href="#L-20"><span class="linenos" data-line="20"></span></a><span class="kd">local</span> <span class="n">i18n</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;Module:I18n/date&#39;</span><span class="p">)</span> <span class="c1">-- get localized translations of date formats</span> </span><span id="L-21"><a href="#L-21"><span class="linenos" data-line="21"></span></a><span class="kd">local</span> <span class="n">yesno</span> <span class="o">=</span> <span class="nb">require</span><span class="p">(</span><span class="s1">&#39;Module:Yesno&#39;</span><span class="p">)</span> </span><span id="L-22"><a href="#L-22"><span class="linenos" data-line="22"></span></a> </span><span id="L-23"><a href="#L-23"><span class="linenos" data-line="23"></span></a><span class="kd">local</span> <span class="kr">function</span> <span class="nf">langSwitch</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="n">lang</span><span class="p">)</span> </span><span id="L-24"><a href="#L-24"><span class="linenos" data-line="24"></span></a> <span class="kd">local</span> <span class="n">langList</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">.</span><span class="n">getFallbacksFor</span><span class="p">(</span><span class="n">lang</span><span class="p">)</span> </span><span id="L-25"><a href="#L-25"><span class="linenos" data-line="25"></span></a> <span class="nb">table.insert</span><span class="p">(</span><span class="n">langList</span><span class="p">,</span><span class="mi">1</span><span class="p">,</span><span class="n">lang</span><span class="p">)</span> </span><span id="L-26"><a href="#L-26"><span class="linenos" data-line="26"></span></a> <span class="kr">for</span> <span class="n">i</span><span class="p">,</span><span class="n">language</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span><span class="n">langList</span><span class="p">)</span> <span class="kr">do</span> </span><span id="L-27"><a href="#L-27"><span class="linenos" data-line="27"></span></a> <span class="kr">if</span> <span class="n">list</span><span class="p">[</span><span class="n">language</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-28"><a href="#L-28"><span class="linenos" data-line="28"></span></a> <span class="kr">return</span> <span class="n">list</span><span class="p">[</span><span class="n">language</span><span class="p">]</span> </span><span id="L-29"><a href="#L-29"><span class="linenos" data-line="29"></span></a> <span class="kr">end</span> </span><span id="L-30"><a href="#L-30"><span class="linenos" data-line="30"></span></a> <span class="kr">end</span> </span><span id="L-31"><a href="#L-31"><span class="linenos" data-line="31"></span></a><span class="kr">end</span> </span><span id="L-32"><a href="#L-32"><span class="linenos" data-line="32"></span></a> </span><span id="L-33"><a href="#L-33"><span class="linenos" data-line="33"></span></a><span class="cm">--[[</span> </span><span id="L-34"><a href="#L-34"><span class="linenos" data-line="34"></span></a><span class="cm">Date</span> </span><span id="L-35"><a href="#L-35"><span class="linenos" data-line="35"></span></a><span class="cm"> </span> </span><span id="L-36"><a href="#L-36"><span class="linenos" data-line="36"></span></a><span class="cm">This function is the core part of the ISOdate template. </span> </span><span id="L-37"><a href="#L-37"><span class="linenos" data-line="37"></span></a><span class="cm"> </span> </span><span id="L-38"><a href="#L-38"><span class="linenos" data-line="38"></span></a><span class="cm">Usage:</span> </span><span id="L-39"><a href="#L-39"><span class="linenos" data-line="39"></span></a><span class="cm">{{#invoke:Date|Date|year=|month=|day=|hour=|minute=|second=|tzhour=|tzmin=|lang=en}}</span> </span><span id="L-40"><a href="#L-40"><span class="linenos" data-line="40"></span></a><span class="cm"> </span> </span><span id="L-41"><a href="#L-41"><span class="linenos" data-line="41"></span></a><span class="cm">Parameters:</span> </span><span id="L-42"><a href="#L-42"><span class="linenos" data-line="42"></span></a><span class="cm"> year,month,day,hour,minute,second: broken down date-time component strings</span> </span><span id="L-43"><a href="#L-43"><span class="linenos" data-line="43"></span></a><span class="cm"> tzhour, tzmin: timezone offset from UTC, hours and minutes</span> </span><span id="L-44"><a href="#L-44"><span class="linenos" data-line="44"></span></a><span class="cm"> lang: The language to display it in</span> </span><span id="L-45"><a href="#L-45"><span class="linenos" data-line="45"></span></a><span class="cm"> case: Language format (genitive, etc.) for some languages</span> </span><span id="L-46"><a href="#L-46"><span class="linenos" data-line="46"></span></a><span class="cm"> class: CSS class for the &lt;time&gt; node, use &quot;&quot; for no metadata at all</span> </span><span id="L-47"><a href="#L-47"><span class="linenos" data-line="47"></span></a> </span><span id="L-48"><a href="#L-48"><span class="linenos" data-line="48"></span></a><span class="cm"> Error Handling:</span> </span><span id="L-49"><a href="#L-49"><span class="linenos" data-line="49"></span></a> </span><span id="L-50"><a href="#L-50"><span class="linenos" data-line="50"></span></a><span class="cm">]]</span> </span><span id="L-51"><a href="#L-51"><span class="linenos" data-line="51"></span></a><span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">Date</span><span class="p">(</span><span class="n">frame</span><span class="p">)</span> </span><span id="L-52"><a href="#L-52"><span class="linenos" data-line="52"></span></a> <span class="kd">local</span> <span class="n">args</span> <span class="o">=</span> <span class="n">frame</span><span class="p">.</span><span class="n">args</span> </span><span id="L-53"><a href="#L-53"><span class="linenos" data-line="53"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">lang</span> <span class="ow">and</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">.</span><span class="n">isSupportedLanguage</span><span class="p">(</span><span class="n">args</span><span class="p">.</span><span class="n">lang</span><span class="p">))</span> <span class="kr">then</span> </span><span id="L-54"><a href="#L-54"><span class="linenos" data-line="54"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">lang</span> <span class="o">=</span> <span class="n">frame</span><span class="p">:</span><span class="n">callParserFunction</span><span class="p">(</span> <span class="s2">&quot;int&quot;</span><span class="p">,</span> <span class="s2">&quot;lang&quot;</span> <span class="p">)</span> <span class="c1">-- get user&#39;s chosen language </span> </span><span id="L-55"><a href="#L-55"><span class="linenos" data-line="55"></span></a> <span class="kr">end</span> </span><span id="L-56"><a href="#L-56"><span class="linenos" data-line="56"></span></a> <span class="kr">return</span> <span class="n">p</span><span class="p">.</span><span class="n">_Date</span><span class="p">(</span> </span><span id="L-57"><a href="#L-57"><span class="linenos" data-line="57"></span></a> <span class="p">{</span> </span><span id="L-58"><a href="#L-58"><span class="linenos" data-line="58"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">year</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-59"><a href="#L-59"><span class="linenos" data-line="59"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">month</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-60"><a href="#L-60"><span class="linenos" data-line="60"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">day</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-61"><a href="#L-61"><span class="linenos" data-line="61"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">hour</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-62"><a href="#L-62"><span class="linenos" data-line="62"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">minute</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-63"><a href="#L-63"><span class="linenos" data-line="63"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">second</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-64"><a href="#L-64"><span class="linenos" data-line="64"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">tzhour</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> </span><span id="L-65"><a href="#L-65"><span class="linenos" data-line="65"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">tzmin</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span> </span><span id="L-66"><a href="#L-66"><span class="linenos" data-line="66"></span></a> <span class="p">},</span> </span><span id="L-67"><a href="#L-67"><span class="linenos" data-line="67"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">lang</span><span class="p">,</span> <span class="c1">-- language</span> </span><span id="L-68"><a href="#L-68"><span class="linenos" data-line="68"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">case</span> <span class="ow">or</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="c1">-- allows to specify grammatical case for the month for languages that use them</span> </span><span id="L-69"><a href="#L-69"><span class="linenos" data-line="69"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">class</span> <span class="ow">or</span> <span class="s1">&#39;dtstart&#39;</span><span class="p">,</span> <span class="c1">-- allows to set the html class of the time node where the date is included. This is useful for microformats.</span> </span><span id="L-70"><a href="#L-70"><span class="linenos" data-line="70"></span></a> <span class="n">args</span><span class="p">.</span><span class="n">trim_year</span> <span class="ow">or</span> <span class="s1">&#39;100-999&#39;</span> <span class="c1">-- by default pad one and 2 digit years to be 4 digit long, while keeping 3 digit years as is</span> </span><span id="L-71"><a href="#L-71"><span class="linenos" data-line="71"></span></a> <span class="p">)</span> </span><span id="L-72"><a href="#L-72"><span class="linenos" data-line="72"></span></a><span class="kr">end</span> </span><span id="L-73"><a href="#L-73"><span class="linenos" data-line="73"></span></a> </span><span id="L-74"><a href="#L-74"><span class="linenos" data-line="74"></span></a> </span><span id="L-75"><a href="#L-75"><span class="linenos" data-line="75"></span></a><span class="kr">function</span> <span class="nc">p</span><span class="p">.</span><span class="nf">_Date</span><span class="p">(</span><span class="n">datevec</span><span class="p">,</span> <span class="n">lang</span><span class="p">,</span> <span class="n">case</span><span class="p">,</span> <span class="n">class</span><span class="p">,</span> <span class="n">trim_year</span><span class="p">)</span> </span><span id="L-76"><a href="#L-76"><span class="linenos" data-line="76"></span></a> <span class="c1">-- make sure inputs are in the right format</span> </span><span id="L-77"><a href="#L-77"><span class="linenos" data-line="77"></span></a> <span class="kr">for</span> <span class="n">i</span> <span class="o">=</span> <span class="o">#</span><span class="n">datevec</span> <span class="o">+</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">8</span> <span class="kr">do</span> </span><span id="L-78"><a href="#L-78"><span class="linenos" data-line="78"></span></a> <span class="n">datevec</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> </span><span id="L-79"><a href="#L-79"><span class="linenos" data-line="79"></span></a> <span class="kr">end</span> </span><span id="L-80"><a href="#L-80"><span class="linenos" data-line="80"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">case</span> <span class="kr">then</span> <span class="n">case</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> <span class="kr">end</span> </span><span id="L-81"><a href="#L-81"><span class="linenos" data-line="81"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">class</span> <span class="kr">then</span> <span class="n">class</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> <span class="kr">end</span> </span><span id="L-82"><a href="#L-82"><span class="linenos" data-line="82"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">trim_year</span> <span class="kr">then</span> <span class="n">trim_year</span> <span class="o">=</span> <span class="s1">&#39;100-999&#39;</span> <span class="kr">end</span> </span><span id="L-83"><a href="#L-83"><span class="linenos" data-line="83"></span></a> </span><span id="L-84"><a href="#L-84"><span class="linenos" data-line="84"></span></a> <span class="c1">-- if language is not provided than look up users language</span> </span><span id="L-85"><a href="#L-85"><span class="linenos" data-line="85"></span></a> <span class="c1">-- WARNING: This step should be done by the template as it does not seem to work as well here (cache issues?)</span> </span><span id="L-86"><a href="#L-86"><span class="linenos" data-line="86"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">lang</span> <span class="ow">or</span> <span class="ow">not</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">.</span><span class="n">isValidCode</span><span class="p">(</span> <span class="n">lang</span> <span class="p">)</span> <span class="kr">then</span> </span><span id="L-87"><a href="#L-87"><span class="linenos" data-line="87"></span></a> <span class="n">lang</span> <span class="o">=</span> <span class="s1">&#39;en&#39;</span> </span><span id="L-88"><a href="#L-88"><span class="linenos" data-line="88"></span></a> <span class="kr">end</span> </span><span id="L-89"><a href="#L-89"><span class="linenos" data-line="89"></span></a> </span><span id="L-90"><a href="#L-90"><span class="linenos" data-line="90"></span></a> <span class="c1">-- Just in case someone broke the internationalization code than fix the english defaults</span> </span><span id="L-91"><a href="#L-91"><span class="linenos" data-line="91"></span></a> <span class="kr">if</span> <span class="n">i18n</span><span class="p">.</span><span class="n">DateLang</span><span class="p">[</span><span class="s1">&#39;en&#39;</span><span class="p">]</span> <span class="o">==</span> <span class="kc">nil</span> <span class="kr">then</span> </span><span id="L-92"><a href="#L-92"><span class="linenos" data-line="92"></span></a> <span class="n">i18n</span><span class="p">.</span><span class="n">DateLang</span><span class="p">[</span><span class="s1">&#39;en&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;en-form&#39;</span> </span><span id="L-93"><a href="#L-93"><span class="linenos" data-line="93"></span></a> <span class="kr">end</span> </span><span id="L-94"><a href="#L-94"><span class="linenos" data-line="94"></span></a> <span class="kr">if</span> <span class="n">i18n</span><span class="p">.</span><span class="n">DateFormat</span><span class="p">[</span><span class="s1">&#39;en-form&#39;</span><span class="p">]</span> <span class="o">==</span> <span class="kc">nil</span> <span class="kr">then</span> </span><span id="L-95"><a href="#L-95"><span class="linenos" data-line="95"></span></a> <span class="n">i18n</span><span class="p">.</span><span class="n">DateFormat</span><span class="p">[</span><span class="s1">&#39;en-form&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="n">YMDHMS</span><span class="o">=</span><span class="s1">&#39;j F Y, H:i:s&#39;</span><span class="p">,</span> <span class="n">YMDHM</span><span class="o">=</span><span class="s1">&#39;j F Y, H:i&#39;</span><span class="p">,</span> <span class="n">YMD</span><span class="o">=</span><span class="s1">&#39;j F Y&#39;</span><span class="p">,</span> <span class="n">YM</span><span class="o">=</span><span class="s1">&#39;F Y&#39;</span><span class="p">,</span> <span class="n">MD</span><span class="o">=</span><span class="s1">&#39;j F&#39;</span><span class="p">,</span> <span class="n">Y</span><span class="o">=</span><span class="s1">&#39;Y&#39;</span><span class="p">}</span> </span><span id="L-96"><a href="#L-96"><span class="linenos" data-line="96"></span></a> <span class="kr">end</span> </span><span id="L-97"><a href="#L-97"><span class="linenos" data-line="97"></span></a> </span><span id="L-98"><a href="#L-98"><span class="linenos" data-line="98"></span></a> <span class="c1">-- create datecode based on which variables are provided and check for out of bound values</span> </span><span id="L-99"><a href="#L-99"><span class="linenos" data-line="99"></span></a> <span class="kd">local</span> <span class="n">maxval</span> <span class="o">=</span> <span class="p">{</span><span class="mi">9999</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">31</span><span class="p">,</span> <span class="mi">23</span><span class="p">,</span> <span class="mi">59</span><span class="p">,</span> <span class="mi">60</span><span class="p">,</span> <span class="mi">23</span><span class="p">,</span> <span class="mi">59</span><span class="p">}</span> <span class="c1">-- max values for year, month, ...</span> </span><span id="L-100"><a href="#L-100"><span class="linenos" data-line="100"></span></a> <span class="kd">local</span> <span class="n">c</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;Y&#39;</span><span class="p">,</span> <span class="s1">&#39;M&#39;</span><span class="p">,</span> <span class="s1">&#39;D&#39;</span><span class="p">,</span> <span class="s1">&#39;H&#39;</span><span class="p">,</span> <span class="s1">&#39;M&#39;</span><span class="p">,</span> <span class="s1">&#39;S&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">}</span> </span><span id="L-101"><a href="#L-101"><span class="linenos" data-line="101"></span></a> <span class="kd">local</span> <span class="n">datecode</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> <span class="c1">-- a string signifying which combination of variables was provided</span> </span><span id="L-102"><a href="#L-102"><span class="linenos" data-line="102"></span></a> <span class="kd">local</span> <span class="n">datenum</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1">-- date-time encoded as a vector = [year, month, ... , second]</span> </span><span id="L-103"><a href="#L-103"><span class="linenos" data-line="103"></span></a> <span class="kr">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">v</span> <span class="kr">in</span> <span class="nb">ipairs</span><span class="p">(</span> <span class="n">datevec</span> <span class="p">)</span> <span class="kr">do</span> </span><span id="L-104"><a href="#L-104"><span class="linenos" data-line="104"></span></a> <span class="kr">if</span> <span class="n">v</span><span class="o">~=</span><span class="kc">nil</span> <span class="ow">and</span> <span class="n">v</span><span class="o">~=</span><span class="s1">&#39;&#39;</span> <span class="kr">then</span> </span><span id="L-105"><a href="#L-105"><span class="linenos" data-line="105"></span></a> <span class="n">datecode</span> <span class="o">=</span> <span class="n">datecode</span> <span class="o">..</span> <span class="n">c</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> </span><span id="L-106"><a href="#L-106"><span class="linenos" data-line="106"></span></a> <span class="n">datenum</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">v</span><span class="p">)</span> </span><span id="L-107"><a href="#L-107"><span class="linenos" data-line="107"></span></a> <span class="kr">if</span> <span class="n">datenum</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">==</span><span class="kc">nil</span> <span class="ow">and</span> <span class="n">i</span><span class="o">==</span><span class="mi">2</span> <span class="kr">then</span> </span><span id="L-108"><a href="#L-108"><span class="linenos" data-line="108"></span></a> <span class="c1">-- month is not a number -&gt; check if it is a month name in English</span> </span><span id="L-109"><a href="#L-109"><span class="linenos" data-line="109"></span></a> <span class="n">v</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="s1">&#39;en&#39;</span><span class="p">):</span><span class="n">formatDate</span><span class="p">(</span> <span class="s2">&quot;n&quot;</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> </span><span id="L-110"><a href="#L-110"><span class="linenos" data-line="110"></span></a> <span class="n">datenum</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">v</span><span class="p">)</span> </span><span id="L-111"><a href="#L-111"><span class="linenos" data-line="111"></span></a> <span class="kr">end</span> </span><span id="L-112"><a href="#L-112"><span class="linenos" data-line="112"></span></a> <span class="kr">if</span> <span class="n">datenum</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">==</span><span class="kc">nil</span> <span class="ow">or</span> <span class="n">datenum</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">&gt;</span><span class="n">maxval</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="kr">then</span> </span><span id="L-113"><a href="#L-113"><span class="linenos" data-line="113"></span></a> <span class="c1">-- Some numbers are out of range -&gt; abort and return the empty string</span> </span><span id="L-114"><a href="#L-114"><span class="linenos" data-line="114"></span></a> <span class="kr">return</span> <span class="s1">&#39;&#39;</span> </span><span id="L-115"><a href="#L-115"><span class="linenos" data-line="115"></span></a> <span class="kr">end</span> </span><span id="L-116"><a href="#L-116"><span class="linenos" data-line="116"></span></a> <span class="kr">end</span> </span><span id="L-117"><a href="#L-117"><span class="linenos" data-line="117"></span></a> <span class="kr">end</span> </span><span id="L-118"><a href="#L-118"><span class="linenos" data-line="118"></span></a> </span><span id="L-119"><a href="#L-119"><span class="linenos" data-line="119"></span></a> <span class="c1">-- create time stamp string (for example 2000-02-20 02:20:20) based on which variables were provided</span> </span><span id="L-120"><a href="#L-120"><span class="linenos" data-line="120"></span></a> <span class="kd">local</span> <span class="n">timeStamp</span> </span><span id="L-121"><a href="#L-121"><span class="linenos" data-line="121"></span></a> <span class="kr">if</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;YMDHMS&#39;</span> <span class="kr">then</span> </span><span id="L-122"><a href="#L-122"><span class="linenos" data-line="122"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i-%02i %02i:%02i:%02i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">4</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">5</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">6</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-123"><a href="#L-123"><span class="linenos" data-line="123"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;YMDHM&#39;</span> <span class="kr">then</span> </span><span id="L-124"><a href="#L-124"><span class="linenos" data-line="124"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i-%02i %02i:%02i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">4</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">5</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-125"><a href="#L-125"><span class="linenos" data-line="125"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span><span class="p">:</span><span class="n">sub</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span><span class="o">==</span><span class="s1">&#39;YMD&#39;</span> <span class="kr">then</span> </span><span id="L-126"><a href="#L-126"><span class="linenos" data-line="126"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i-%02i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-127"><a href="#L-127"><span class="linenos" data-line="127"></span></a> <span class="n">datecode</span> <span class="o">=</span> <span class="s1">&#39;YMD&#39;</span> <span class="c1">-- &#39;YMD&#39;, &#39;YMDHMS&#39; and &#39;YMDHM&#39; are the only supported format starting with &#39;YMD&#39;. All others will be converted to &#39;YMD&#39;</span> </span><span id="L-128"><a href="#L-128"><span class="linenos" data-line="128"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;YM&#39;</span> <span class="kr">then</span> </span><span id="L-129"><a href="#L-129"><span class="linenos" data-line="129"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-130"><a href="#L-130"><span class="linenos" data-line="130"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span><span class="p">:</span><span class="n">sub</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span><span class="o">==</span><span class="s1">&#39;Y&#39;</span> <span class="kr">then</span> </span><span id="L-131"><a href="#L-131"><span class="linenos" data-line="131"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-132"><a href="#L-132"><span class="linenos" data-line="132"></span></a> <span class="n">datecode</span> <span class="o">=</span> <span class="s1">&#39;Y&#39;</span> </span><span id="L-133"><a href="#L-133"><span class="linenos" data-line="133"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;M&#39;</span> <span class="kr">then</span> </span><span id="L-134"><a href="#L-134"><span class="linenos" data-line="134"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i-%02i&#39;</span><span class="p">,</span> <span class="mi">2000</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="mi">1</span> <span class="p">)</span> </span><span id="L-135"><a href="#L-135"><span class="linenos" data-line="135"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> <span class="c1">-- date not complete -&gt; no html formating or micro-tagging of date string</span> </span><span id="L-136"><a href="#L-136"><span class="linenos" data-line="136"></span></a> <span class="kr">elseif</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;MD&#39;</span> <span class="kr">then</span> </span><span id="L-137"><a href="#L-137"><span class="linenos" data-line="137"></span></a> <span class="n">timeStamp</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i-%02i-%02i&#39;</span><span class="p">,</span> <span class="mi">2000</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span> <span class="p">)</span> </span><span id="L-138"><a href="#L-138"><span class="linenos" data-line="138"></span></a> <span class="n">class</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span> <span class="c1">-- date not complete -&gt; no html formating or micro-tagging of date string</span> </span><span id="L-139"><a href="#L-139"><span class="linenos" data-line="139"></span></a> <span class="kr">else</span> </span><span id="L-140"><a href="#L-140"><span class="linenos" data-line="140"></span></a> <span class="kr">return</span> <span class="s1">&#39;&#39;</span> <span class="c1">-- format not supported</span> </span><span id="L-141"><a href="#L-141"><span class="linenos" data-line="141"></span></a> <span class="kr">end</span> </span><span id="L-142"><a href="#L-142"><span class="linenos" data-line="142"></span></a> </span><span id="L-143"><a href="#L-143"><span class="linenos" data-line="143"></span></a> <span class="c1">-- ==========================================================</span> </span><span id="L-144"><a href="#L-144"><span class="linenos" data-line="144"></span></a> <span class="c1">-- === Create Date String using in chosen language</span> </span><span id="L-145"><a href="#L-145"><span class="linenos" data-line="145"></span></a> <span class="c1">-- ==========================================================</span> </span><span id="L-146"><a href="#L-146"><span class="linenos" data-line="146"></span></a> </span><span id="L-147"><a href="#L-147"><span class="linenos" data-line="147"></span></a> <span class="c1">-- which form should the date take? </span> </span><span id="L-148"><a href="#L-148"><span class="linenos" data-line="148"></span></a> <span class="c1">-- Use langSwitch to pick formating for each language</span> </span><span id="L-149"><a href="#L-149"><span class="linenos" data-line="149"></span></a> <span class="kd">local</span> <span class="n">langDateForm</span> <span class="o">=</span> <span class="n">langSwitch</span><span class="p">(</span><span class="n">i18n</span><span class="p">.</span><span class="n">DateLang</span><span class="p">,</span> <span class="n">lang</span><span class="p">)</span> </span><span id="L-150"><a href="#L-150"><span class="linenos" data-line="150"></span></a> </span><span id="L-151"><a href="#L-151"><span class="linenos" data-line="151"></span></a> <span class="c1">-- special case of French and Gallic dates, which require different date format for the 1st day of the month</span> </span><span id="L-152"><a href="#L-152"><span class="linenos" data-line="152"></span></a> <span class="kr">if</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="o">==</span><span class="mi">1</span> <span class="ow">and</span> <span class="p">(</span><span class="n">langDateForm</span><span class="o">==</span><span class="s1">&#39;fr-form&#39;</span> <span class="ow">or</span> <span class="n">langDateForm</span><span class="o">==</span><span class="s1">&#39;ga-form&#39;</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-153"><a href="#L-153"><span class="linenos" data-line="153"></span></a> <span class="n">langDateForm</span> <span class="o">=</span> <span class="n">langDateForm</span> <span class="o">..</span> <span class="s1">&#39;1&#39;</span> <span class="c1">-- ordinal form for the first day of the month</span> </span><span id="L-154"><a href="#L-154"><span class="linenos" data-line="154"></span></a> <span class="kr">end</span> </span><span id="L-155"><a href="#L-155"><span class="linenos" data-line="155"></span></a> <span class="c1">-- special case of Basque dates, which require different date format for the 1st, 11th, 21st and 31st day of the month</span> </span><span id="L-156"><a href="#L-156"><span class="linenos" data-line="156"></span></a> <span class="kr">if</span> <span class="n">langDateForm</span><span class="o">==</span><span class="s1">&#39;eu-form&#39;</span> <span class="kr">then</span> </span><span id="L-157"><a href="#L-157"><span class="linenos" data-line="157"></span></a> <span class="kr">if</span> <span class="p">(</span><span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="o">==</span><span class="mi">1</span> <span class="ow">or</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="o">==</span><span class="mi">21</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-158"><a href="#L-158"><span class="linenos" data-line="158"></span></a> <span class="n">langDateForm</span> <span class="o">=</span> <span class="s1">&#39;eu-form01&#39;</span> </span><span id="L-159"><a href="#L-159"><span class="linenos" data-line="159"></span></a> <span class="kr">elseif</span> <span class="p">(</span><span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="o">==</span><span class="mi">11</span> <span class="ow">or</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span><span class="o">==</span><span class="mi">31</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-160"><a href="#L-160"><span class="linenos" data-line="160"></span></a> <span class="n">langDateForm</span> <span class="o">=</span> <span class="s1">&#39;eu-form11&#39;</span> </span><span id="L-161"><a href="#L-161"><span class="linenos" data-line="161"></span></a> <span class="kr">end</span> </span><span id="L-162"><a href="#L-162"><span class="linenos" data-line="162"></span></a> <span class="kr">end</span> </span><span id="L-163"><a href="#L-163"><span class="linenos" data-line="163"></span></a> </span><span id="L-164"><a href="#L-164"><span class="linenos" data-line="164"></span></a> <span class="c1">-- Look up country specific format input to {{#time}} function</span> </span><span id="L-165"><a href="#L-165"><span class="linenos" data-line="165"></span></a> <span class="kd">local</span> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">i18n</span><span class="p">.</span><span class="n">DateFormat</span><span class="p">[</span><span class="n">langDateForm</span><span class="p">][</span><span class="n">datecode</span><span class="p">]</span> </span><span id="L-166"><a href="#L-166"><span class="linenos" data-line="166"></span></a> </span><span id="L-167"><a href="#L-167"><span class="linenos" data-line="167"></span></a> <span class="c1">-- overwrite default grammatical case of the month (applies mostly to Slavic languages)</span> </span><span id="L-168"><a href="#L-168"><span class="linenos" data-line="168"></span></a> <span class="kr">if</span> <span class="p">(</span><span class="n">case</span><span class="o">==</span><span class="s1">&#39;gen&#39;</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-169"><a href="#L-169"><span class="linenos" data-line="169"></span></a> <span class="c1">-- CAUTION: at the moment i18n.DateFormat uses &quot;F&quot; only as month name, but this might change and this operation does not check if &#39;F&#39; is in &quot;&quot; brackets or not, so if some language starts using &#39;F&#39; in &quot;&quot; than this will not work for that language</span> </span><span id="L-170"><a href="#L-170"><span class="linenos" data-line="170"></span></a> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">dFormat</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s2">&quot;F&quot;</span><span class="p">,</span> <span class="s2">&quot;xg&quot;</span><span class="p">);</span> </span><span id="L-171"><a href="#L-171"><span class="linenos" data-line="171"></span></a> <span class="kr">end</span> </span><span id="L-172"><a href="#L-172"><span class="linenos" data-line="172"></span></a> <span class="kr">if</span> <span class="p">(</span><span class="n">case</span><span class="o">==</span><span class="s1">&#39;nom&#39;</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-173"><a href="#L-173"><span class="linenos" data-line="173"></span></a> <span class="c1">-- CAUTION: at the moment i18n.DateFormat uses &quot;xg&quot; only as month name, but this might change and this operation does not check if &#39;xg&#39; is in &quot;&quot; brackets or not, so if some language starts using &#39;xg&#39; in &quot;&quot; than this will not work for that language</span> </span><span id="L-174"><a href="#L-174"><span class="linenos" data-line="174"></span></a> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">dFormat</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s2">&quot;xg&quot;</span><span class="p">,</span> <span class="s2">&quot;F&quot;</span><span class="p">);</span> </span><span id="L-175"><a href="#L-175"><span class="linenos" data-line="175"></span></a> <span class="kr">end</span> </span><span id="L-176"><a href="#L-176"><span class="linenos" data-line="176"></span></a> <span class="kr">if</span> <span class="p">((</span><span class="n">lang</span><span class="o">==</span><span class="s1">&#39;ru&#39;</span> <span class="ow">or</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;pl&#39;</span> <span class="ow">or</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;cs&#39;</span> <span class="ow">or</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;sl&#39;</span> <span class="ow">or</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;sk&#39;</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">case</span><span class="o">==</span><span class="s1">&#39;loc&#39;</span> <span class="ow">or</span> <span class="n">case</span><span class="o">==</span><span class="s1">&#39;ins&#39;</span><span class="p">))</span> <span class="ow">or</span> </span><span id="L-177"><a href="#L-177"><span class="linenos" data-line="177"></span></a> <span class="p">(</span><span class="n">lang</span><span class="o">==</span><span class="s1">&#39;fi&#39;</span> <span class="ow">and</span> <span class="p">(</span><span class="n">case</span><span class="o">==</span><span class="s1">&#39;ptv&#39;</span> <span class="ow">or</span> <span class="n">case</span><span class="o">==</span><span class="s1">&#39;ine&#39;</span><span class="ow">or</span> <span class="n">case</span><span class="o">==</span><span class="s1">&#39;ela&#39;</span><span class="ow">or</span> <span class="n">case</span><span class="o">==</span><span class="s1">&#39;ill&#39;</span><span class="p">)</span> <span class="p">)</span> <span class="kr">then</span> </span><span id="L-178"><a href="#L-178"><span class="linenos" data-line="178"></span></a> <span class="kd">local</span> <span class="n">monthEn</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">language</span><span class="p">.</span><span class="n">new</span><span class="p">(</span><span class="s1">&#39;en&#39;</span><span class="p">):</span><span class="n">formatDate</span><span class="p">(</span> <span class="s2">&quot;F&quot;</span><span class="p">,</span> <span class="n">timeStamp</span><span class="p">)</span> <span class="c1">-- month name in English</span> </span><span id="L-179"><a href="#L-179"><span class="linenos" data-line="179"></span></a> <span class="c1">-- month name using proper case and language. It relies on messages stored in MediaWiki namespace for some cases and languages</span> </span><span id="L-180"><a href="#L-180"><span class="linenos" data-line="180"></span></a> <span class="c1">-- That is why this IF statement uses &quot;lang&quot; not &quot;langDateForm&quot; variable to decide</span> </span><span id="L-181"><a href="#L-181"><span class="linenos" data-line="181"></span></a> <span class="kd">local</span> <span class="n">monthMsg</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">message</span><span class="p">.</span><span class="n">new</span><span class="p">(</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%s-%s&#39;</span><span class="p">,</span> <span class="n">monthEn</span><span class="p">,</span> <span class="n">case</span> <span class="p">)</span> <span class="p">):</span><span class="n">inLanguage</span><span class="p">(</span> <span class="n">lang</span> <span class="p">)</span> </span><span id="L-182"><a href="#L-182"><span class="linenos" data-line="182"></span></a> <span class="kr">if</span> <span class="ow">not</span> <span class="n">monthMsg</span><span class="p">:</span><span class="n">isDisabled</span><span class="p">()</span> <span class="kr">then</span> <span class="c1">-- make sure it exists</span> </span><span id="L-183"><a href="#L-183"><span class="linenos" data-line="183"></span></a> <span class="kd">local</span> <span class="n">month</span><span class="o">=</span><span class="n">monthMsg</span><span class="p">:</span><span class="n">plain</span><span class="p">()</span> </span><span id="L-184"><a href="#L-184"><span class="linenos" data-line="184"></span></a> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">dFormat</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">&#39;F&#39;</span><span class="p">,</span> <span class="s1">&#39;&quot;&#39;</span><span class="o">..</span><span class="n">month</span><span class="o">..</span><span class="s1">&#39;&quot;&#39;</span><span class="p">);</span> <span class="c1">-- replace default month with month name we already looked up</span> </span><span id="L-185"><a href="#L-185"><span class="linenos" data-line="185"></span></a> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">dFormat</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">&#39;xg&#39;</span><span class="p">,</span> <span class="s1">&#39;&quot;&#39;</span><span class="o">..</span><span class="n">month</span><span class="o">..</span><span class="s1">&#39;&quot;&#39;</span><span class="p">);</span> </span><span id="L-186"><a href="#L-186"><span class="linenos" data-line="186"></span></a> <span class="kr">end</span> </span><span id="L-187"><a href="#L-187"><span class="linenos" data-line="187"></span></a> <span class="kr">end</span> </span><span id="L-188"><a href="#L-188"><span class="linenos" data-line="188"></span></a> <span class="c1">-- Special case related to Quechua and Kichwa languages</span> </span><span id="L-189"><a href="#L-189"><span class="linenos" data-line="189"></span></a> <span class="c1">-- see https://commons.wikimedia.org/wiki/Template_talk:Date#Quechua from 2014</span> </span><span id="L-190"><a href="#L-190"><span class="linenos" data-line="190"></span></a> <span class="kr">if</span> <span class="p">(</span><span class="n">lang</span><span class="o">==</span><span class="s1">&#39;qu&#39;</span> <span class="ow">or</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;qug&#39;</span><span class="p">)</span> <span class="ow">and</span> <span class="n">case</span><span class="o">==</span><span class="s1">&#39;nom&#39;</span> <span class="kr">then</span> </span><span id="L-191"><a href="#L-191"><span class="linenos" data-line="191"></span></a> <span class="n">dFormat</span> <span class="o">=</span> <span class="n">dFormat</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span><span class="s1">&#39;F&quot;pi&quot;&#39;</span><span class="p">,</span> <span class="s1">&#39;F&#39;</span><span class="p">);</span> </span><span id="L-192"><a href="#L-192"><span class="linenos" data-line="192"></span></a> <span class="kr">end</span> </span><span id="L-193"><a href="#L-193"><span class="linenos" data-line="193"></span></a> </span><span id="L-194"><a href="#L-194"><span class="linenos" data-line="194"></span></a> <span class="c1">-- Lua only date formating using {{#time}} parser function (new)</span> </span><span id="L-195"><a href="#L-195"><span class="linenos" data-line="195"></span></a> <span class="c1">-- prefered call which gives &quot;Lua error: too many language codes requested.&quot; on the [[Module talk:Date/sandbox/testcases]] page</span> </span><span id="L-196"><a href="#L-196"><span class="linenos" data-line="196"></span></a> <span class="c1">--local datestr = mw.language.new(lang):formatDate( dFormat, timeStamp) </span> </span><span id="L-197"><a href="#L-197"><span class="linenos" data-line="197"></span></a> <span class="kd">local</span> <span class="n">datestr</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">getCurrentFrame</span><span class="p">():</span><span class="n">callParserFunction</span><span class="p">(</span> <span class="s2">&quot;#time&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="n">dFormat</span><span class="p">,</span> <span class="n">timeStamp</span><span class="p">,</span> <span class="n">lang</span> <span class="p">}</span> <span class="p">)</span> </span><span id="L-198"><a href="#L-198"><span class="linenos" data-line="198"></span></a> </span><span id="L-199"><a href="#L-199"><span class="linenos" data-line="199"></span></a> <span class="c1">-- Another special case related to Thai solar calendar</span> </span><span id="L-200"><a href="#L-200"><span class="linenos" data-line="200"></span></a> <span class="kr">if</span> <span class="n">lang</span><span class="o">==</span><span class="s1">&#39;th&#39;</span> <span class="ow">and</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">~=</span> <span class="kc">nil</span> <span class="ow">and</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">&lt;=</span><span class="mi">1940</span> <span class="kr">then</span> </span><span id="L-201"><a href="#L-201"><span class="linenos" data-line="201"></span></a> <span class="c1">-- As of 2014 {{#time}} parser function did not resolve those cases properly</span> </span><span id="L-202"><a href="#L-202"><span class="linenos" data-line="202"></span></a> <span class="c1">-- See https://en.wikipedia.org/wiki/Thai_solar_calendar#New_year for reference</span> </span><span id="L-203"><a href="#L-203"><span class="linenos" data-line="203"></span></a> <span class="c1">-- Disable once https://bugzilla.wikimedia.org/show_bug.cgi?id=66648 is fixed</span> </span><span id="L-204"><a href="#L-204"><span class="linenos" data-line="204"></span></a> <span class="kr">if</span> <span class="n">datecode</span><span class="o">==</span><span class="s1">&#39;Y&#39;</span> <span class="kr">then</span> <span class="c1">-- date is ambiguous</span> </span><span id="L-205"><a href="#L-205"><span class="linenos" data-line="205"></span></a> <span class="n">datestr</span> <span class="o">=</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i หรือ %04i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="mi">542</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="mi">543</span> <span class="p">)</span> </span><span id="L-206"><a href="#L-206"><span class="linenos" data-line="206"></span></a> <span class="kr">elseif</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="o">&lt;=</span><span class="mi">3</span> <span class="kr">then</span> <span class="c1">-- year is wrong (one too many)</span> </span><span id="L-207"><a href="#L-207"><span class="linenos" data-line="207"></span></a> <span class="n">datestr</span> <span class="o">=</span> <span class="n">datestr</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="mi">543</span><span class="p">),</span> <span class="nb">string.format</span><span class="p">(</span><span class="s1">&#39;%04i&#39;</span><span class="p">,</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="mi">542</span> <span class="p">)</span> <span class="p">)</span> </span><span id="L-208"><a href="#L-208"><span class="linenos" data-line="208"></span></a> <span class="kr">end</span> </span><span id="L-209"><a href="#L-209"><span class="linenos" data-line="209"></span></a> <span class="kr">end</span> </span><span id="L-210"><a href="#L-210"><span class="linenos" data-line="210"></span></a> </span><span id="L-211"><a href="#L-211"><span class="linenos" data-line="211"></span></a> <span class="c1">-- If year&lt;1000 than either keep it padded to the length of 4 digits or trim it</span> </span><span id="L-212"><a href="#L-212"><span class="linenos" data-line="212"></span></a> <span class="c1">-- decide if the year will stay padded with zeros (for years in 0-999 range)</span> </span><span id="L-213"><a href="#L-213"><span class="linenos" data-line="213"></span></a> <span class="kr">if</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">~=</span> <span class="kc">nil</span> <span class="ow">and</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">&lt;</span><span class="mi">1000</span> <span class="kr">then</span> </span><span id="L-214"><a href="#L-214"><span class="linenos" data-line="214"></span></a> <span class="kd">local</span> <span class="n">trim</span> <span class="o">=</span> <span class="n">yesno</span><span class="p">(</span><span class="n">trim_year</span><span class="p">,</span><span class="kc">nil</span><span class="p">)</span> </span><span id="L-215"><a href="#L-215"><span class="linenos" data-line="215"></span></a> <span class="kr">if</span> <span class="n">trim</span> <span class="o">==</span> <span class="kc">nil</span> <span class="kr">then</span> </span><span id="L-216"><a href="#L-216"><span class="linenos" data-line="216"></span></a> <span class="kd">local</span> <span class="n">YMin</span><span class="p">,</span> <span class="n">YMax</span> <span class="o">=</span> <span class="n">trim_year</span><span class="p">:</span><span class="n">match</span><span class="p">(</span> <span class="s1">&#39;(%d+)-(%d+)&#39;</span> <span class="p">)</span> </span><span id="L-217"><a href="#L-217"><span class="linenos" data-line="217"></span></a> <span class="n">trim</span> <span class="o">=</span> <span class="p">(</span><span class="n">YMin</span><span class="o">~=</span><span class="kc">nil</span> <span class="ow">and</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">&gt;=</span><span class="nb">tonumber</span><span class="p">(</span><span class="n">YMin</span><span class="p">)</span> <span class="ow">and</span> <span class="n">datenum</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">&lt;=</span><span class="nb">tonumber</span><span class="p">(</span><span class="n">YMax</span><span class="p">))</span> </span><span id="L-218"><a href="#L-218"><span class="linenos" data-line="218"></span></a> <span class="kr">end</span> </span><span id="L-219"><a href="#L-219"><span class="linenos" data-line="219"></span></a> </span><span id="L-220"><a href="#L-220"><span class="linenos" data-line="220"></span></a> <span class="c1">-- If the date form isn&#39;t the Thai solar calendar, don&#39;t zero pad years in the range of 100-999. </span> </span><span id="L-221"><a href="#L-221"><span class="linenos" data-line="221"></span></a> <span class="c1">-- If at some point support for Islamic/Hebrew/Japanese years is added, they may need to be skipped as well. </span> </span><span id="L-222"><a href="#L-222"><span class="linenos" data-line="222"></span></a> <span class="kr">if</span> <span class="n">trim</span> <span class="kr">then</span> </span><span id="L-223"><a href="#L-223"><span class="linenos" data-line="223"></span></a> <span class="c1">--local yearStr1 = mw.language.new(lang):formatDate( &#39;Y&#39;, timeStamp)</span> </span><span id="L-224"><a href="#L-224"><span class="linenos" data-line="224"></span></a> <span class="kd">local</span> <span class="n">yearStr1</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">getCurrentFrame</span><span class="p">():</span><span class="n">callParserFunction</span><span class="p">(</span> <span class="s2">&quot;#time&quot;</span><span class="p">,</span> <span class="p">{</span> <span class="s1">&#39;Y&#39;</span><span class="p">,</span> <span class="n">timeStamp</span><span class="p">,</span> <span class="n">lang</span> <span class="p">}</span> <span class="p">)</span> </span><span id="L-225"><a href="#L-225"><span class="linenos" data-line="225"></span></a> <span class="c1">--local yearStr1 = datestr:match( &#39;%d%d%d%d&#39; ) -- 4 digits in a row (in any language) - that must be a year</span> </span><span id="L-226"><a href="#L-226"><span class="linenos" data-line="226"></span></a> <span class="kd">local</span> <span class="n">yearStr2</span> <span class="o">=</span> <span class="n">yearStr1</span> </span><span id="L-227"><a href="#L-227"><span class="linenos" data-line="227"></span></a> <span class="kd">local</span> <span class="n">zeroStr</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">sub</span><span class="p">(</span><span class="n">yearStr1</span><span class="p">,</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> </span><span id="L-228"><a href="#L-228"><span class="linenos" data-line="228"></span></a> <span class="kr">for</span> <span class="n">i</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span><span class="mi">3</span> <span class="kr">do</span> <span class="c1">-- trim leading zeros</span> </span><span id="L-229"><a href="#L-229"><span class="linenos" data-line="229"></span></a> <span class="kr">if</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">sub</span><span class="p">(</span><span class="n">yearStr2</span><span class="p">,</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span><span class="o">==</span><span class="n">zeroStr</span> <span class="kr">then</span> </span><span id="L-230"><a href="#L-230"><span class="linenos" data-line="230"></span></a> <span class="n">yearStr2</span> <span class="o">=</span> <span class="n">mw</span><span class="p">.</span><span class="n">ustring</span><span class="p">.</span><span class="n">sub</span><span class="p">(</span><span class="n">yearStr2</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">5</span><span class="o">-</span><span class="n">i</span><span class="p">)</span> </span><span id="L-231"><a href="#L-231"><span class="linenos" data-line="231"></span></a> <span class="kr">else</span> </span><span id="L-232"><a href="#L-232"><span class="linenos" data-line="232"></span></a> <span class="kr">break</span> </span><span id="L-233"><a href="#L-233"><span class="linenos" data-line="233"></span></a> <span class="kr">end</span> </span><span id="L-234"><a href="#L-234"><span class="linenos" data-line="234"></span></a> <span class="kr">end</span> </span><span id="L-235"><a href="#L-235"><span class="linenos" data-line="235"></span></a> <span class="n">datestr</span> <span class="o">=</span> <span class="n">datestr</span><span class="p">:</span><span class="n">gsub</span><span class="p">(</span> <span class="n">yearStr1</span><span class="p">,</span> <span class="n">yearStr2</span> <span class="p">)</span> </span><span id="L-236"><a href="#L-236"><span class="linenos" data-line="236"></span></a> <span class="c1">--datestr = string.format(&#39;%s (%s, %s)&#39;, datestr, yearStr1, yearStr2 )</span> </span><span id="L-237"><a href="#L-237"><span class="linenos" data-line="237"></span></a> <span class="kr">end</span> </span><span id="L-238"><a href="#L-238"><span class="linenos" data-line="238"></span></a> <span class="kr">end</span> </span><span id="L-239"><a href="#L-239"><span class="linenos" data-line="239"></span></a> </span><span id="L-240"><a href="#L-240"><span class="linenos" data-line="240"></span></a> <span class="c1">-- append timezone if present</span> </span><span id="L-241"><a href="#L-241"><span class="linenos" data-line="241"></span></a> <span class="kr">if</span> <span class="n">datevec</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span> <span class="o">~=</span> <span class="s1">&#39;&#39;</span> <span class="ow">and</span> <span class="p">(</span><span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;YMDHMS&#39;</span> <span class="ow">or</span> <span class="n">datecode</span> <span class="o">==</span> <span class="s1">&#39;YMDHM&#39;</span><span class="p">)</span> <span class="kr">then</span> </span><span id="L-242"><a href="#L-242"><span class="linenos" data-line="242"></span></a> <span class="kd">local</span> <span class="n">tzstr</span><span class="p">,</span> <span class="n">tzhournum</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="nb">tonumber</span><span class="p">(</span><span class="n">datevec</span><span class="p">[</span><span class="mi">7</span><span class="p">])</span> </span><span id="L-243"><a href="#L-243"><span class="linenos" data-line="243"></span></a> <span class="kr">if</span> <span class="n">tzhournum</span> <span class="o">&lt;</span> <span class="mi">0</span> <span class="kr">then</span> <span class="n">tzstr</span> <span class="o">=</span> <span class="s1">&#39;−&#39;</span> <span class="kr">else</span> <span class="n">tzstr</span> <span class="o">=</span> <span class="s1">&#39;+&#39;</span> <span class="kr">end</span> </span><span id="L-244"><a href="#L-244"><span class="linenos" data-line="244"></span></a> <span class="n">tzstr</span> <span class="o">=</span> <span class="n">tzstr</span><span class="o">..</span><span class="nb">string.format</span><span class="p">(</span><span class="s2">&quot;%02d&quot;</span><span class="p">,</span> <span class="nb">math.abs</span><span class="p">(</span><span class="n">tzhournum</span><span class="p">))</span><span class="o">..</span><span class="s1">&#39;:&#39;</span> </span><span id="L-245"><a href="#L-245"><span class="linenos" data-line="245"></span></a> <span class="kr">if</span> <span class="n">datevec</span><span class="p">[</span><span class="mi">8</span><span class="p">]</span> <span class="o">~=</span> <span class="s1">&#39;&#39;</span> <span class="kr">then</span> <span class="n">tzstr</span> <span class="o">=</span> <span class="n">tzstr</span><span class="o">..</span><span class="n">datevec</span><span class="p">[</span><span class="mi">8</span><span class="p">]</span> <span class="kr">else</span> <span class="n">tzstr</span> <span class="o">=</span> <span class="n">tzstr</span><span class="o">..</span><span class="s1">&#39;00&#39;</span> <span class="kr">end</span> </span><span id="L-246"><a href="#L-246"><span class="linenos" data-line="246"></span></a> <span class="n">datestr</span> <span class="o">=</span> <span class="n">datestr</span><span class="o">..</span><span class="s1">&#39; &#39;</span><span class="o">..</span><span class="n">tzstr</span> </span><span id="L-247"><a href="#L-247"><span class="linenos" data-line="247"></span></a> <span class="kr">end</span> </span><span id="L-248"><a href="#L-248"><span class="linenos" data-line="248"></span></a> </span><span id="L-249"><a href="#L-249"><span class="linenos" data-line="249"></span></a> <span class="c1">-- html formating and tagging of date string</span> </span><span id="L-250"><a href="#L-250"><span class="linenos" data-line="250"></span></a> <span class="kr">if</span> <span class="n">class</span> <span class="o">~=</span> <span class="s1">&#39;&#39;</span> <span class="kr">then</span> </span><span id="L-251"><a href="#L-251"><span class="linenos" data-line="251"></span></a> <span class="kd">local</span> <span class="n">DateHtmlTags</span> <span class="o">=</span> <span class="s1">&#39;&lt;span style=&quot;white-space:nowrap&quot;&gt;&lt;time class=&quot;%s&quot; datetime=&quot;%s&quot;&gt;%s&lt;/time&gt;&lt;/span&gt;&#39;</span> </span><span id="L-252"><a href="#L-252"><span class="linenos" data-line="252"></span></a> <span class="n">datestr</span> <span class="o">=</span> <span class="n">DateHtmlTags</span><span class="p">:</span><span class="n">format</span><span class="p">(</span><span class="n">class</span><span class="p">,</span> <span class="n">timeStamp</span><span class="p">,</span> <span class="n">datestr</span><span class="p">)</span> </span><span id="L-253"><a href="#L-253"><span class="linenos" data-line="253"></span></a> <span class="kr">end</span> </span><span id="L-254"><a href="#L-254"><span class="linenos" data-line="254"></span></a> <span class="kr">return</span> <span class="n">datestr</span> </span><span id="L-255"><a href="#L-255"><span class="linenos" data-line="255"></span></a><span class="kr">end</span> </span><span id="L-256"><a href="#L-256"><span class="linenos" data-line="256"></span></a> </span><span id="L-257"><a href="#L-257"><span class="linenos" data-line="257"></span></a><span class="kr">return</span> <span class="n">p</span> </span></pre></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐5c59558b9d‐dcjm4 Cached time: 20241201225602 Cache expiry: 2592000 Reduced expiry: false Complications: [no‐toc] CPU time usage: 0.151 seconds Real time usage: 0.288 seconds Preprocessor visited node count: 574/1000000 Post‐expand include size: 16193/2097152 bytes Template argument size: 295/2097152 bytes Highest expansion depth: 9/100 Expensive parser function count: 2/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 14882/5000000 bytes Lua time usage: 0.066/10.000 seconds Lua memory usage: 1024656/52428800 bytes Number of Wikibase entities loaded: 0/500 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 263.304 1 -total 84.75% 223.144 1 Module:Date/doc 31.45% 82.816 2 Template:Module_rating 29.85% 78.589 2 Template:Ombox 13.70% 36.073 1 Template:Module-nav 7.68% 20.231 5 Template:Module-nav/i18n 7.62% 20.056 1 Template:Collapse 6.28% 16.524 5 Template:LangSwitch 1.49% 3.932 1 Template:LuaLogo 1.48% 3.898 3 Template:Tl --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://www.wikidata.org/w/index.php?title=Module:Date&amp;oldid=791991603">https://www.wikidata.org/w/index.php?title=Module:Date&amp;oldid=791991603</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Pages_using_the_JsonConfig_extension" title="Category:Pages using the JsonConfig extension">Pages using the JsonConfig extension</a></li><li><a href="/wiki/Category:Modules_for_general_use" title="Category:Modules for general use">Modules for general use</a></li><li><a href="/wiki/Category:Modules_subject_to_page_protection" title="Category:Modules subject to page protection">Modules subject to page protection</a></li></ul></div></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="mw-portlet mw-portlet-personal vector-user-menu-legacy vector-menu" aria-labelledby="p-personal-label" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-uls" class="mw-list-item active"><a class="uls-trigger" href="#"><span>English</span></a></li><li id="pt-anonuserpage" class="mw-list-item"><span title="The user page for the IP address you are editing as">Not logged in</span></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li><li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-createaccount" class="mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Module%3ADate" title="You are encouraged to create an account and log in; however, it is not mandatory"><span>Create account</span></a></li><li id="pt-login" class="mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Module%3ADate" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li> </ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-namespaces-label" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-module" class="selected mw-list-item"><a href="/wiki/Module:Date" title="View the module page [c]" accesskey="c"><span>Module</span></a></li><li id="ca-talk" class="new mw-list-item"><a href="/w/index.php?title=Module_talk:Date&amp;action=edit&amp;redlink=1" rel="discussion" class="new" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </nav> <nav id="p-variants" class="mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-variants-label" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" > <label id="p-variants-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy vector-menu" aria-labelledby="p-views-label" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected mw-list-item"><a href="/wiki/Module:Date"><span>Read</span></a></li><li id="ca-edit" class="mw-list-item"><a href="/w/index.php?title=Module:Date&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="mw-list-item"><a href="/w/index.php?title=Module:Date&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </nav> <nav id="p-cactions" class="mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown vector-menu" aria-labelledby="p-cactions-label" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" > <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box"> <h3 >Search</h3> <form action="/w/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search Wikidata" aria-label="Search Wikidata" autocapitalize="sentences" title="Search Wikidata [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:Search"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> <div id="mw-panel" class="vector-legacy-sidebar"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/wiki/Wikidata:Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="mw-portlet mw-portlet-navigation vector-menu-portal portal vector-menu" aria-labelledby="p-navigation-label" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigation</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Wikidata:Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Project:Community_portal" title="About the project, what you can do, where to find things"><span>Community portal</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikidata:Project_chat"><span>Project chat</span></a></li><li id="n-special-newitem" class="mw-list-item"><a href="/wiki/Special:NewItem"><span>Create a new Item</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-wikibase-randomitem" class="mw-list-item"><a href="/wiki/Special:Random/Main" title="[x]" accesskey="x"><span>Random Item</span></a></li><li id="n-wikibase-queryservice" class="mw-list-item"><a href="//query.wikidata.org/"><span>Query Service</span></a></li><li id="n-nearby-pages-title" class="mw-list-item"><a href="/wiki/Special:Nearby"><span>Nearby</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Contents" title="The place to find out"><span>Help</span></a></li><li id="n-sitesupport" class="mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_wikidata.org&amp;uselang=en" title="Support us"><span>Donate</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-lexeme-lexicographical-data" class="mw-portlet mw-portlet-wikibase-lexeme-lexicographical-data vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-lexeme-lexicographical-data-label" > <h3 id="p-wikibase-lexeme-lexicographical-data-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Lexicographical data</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-special-newlexeme" class="mw-list-item"><a href="/wiki/Special:NewLexeme"><span>Create a new Lexeme</span></a></li><li id="n-recentchanges-lexemes" class="mw-list-item"><a href="https://www.wikidata.org/wiki/Special:RecentChanges?namespace=146%3B147"><span>Recent changes</span></a></li><li id="n-wikibase-lexeme-randomlexeme" class="mw-list-item"><a href="/wiki/Special:Random/Lexeme"><span>Random Lexeme</span></a></li> </ul> </div> </nav> <nav id="p-tb" class="mw-portlet mw-portlet-tb vector-menu-portal portal vector-menu" aria-labelledby="p-tb-label" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Module:Date" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Module:Date" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Module:Date&amp;oldid=791991603" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Module:Date&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FModule%3ADate"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FModule%3ADate"><span>Download QR code</span></a></li> </ul> </div> </nav> <nav id="p-electronpdfservice-sidebar-portlet-heading" class="mw-portlet mw-portlet-electronpdfservice-sidebar-portlet-heading vector-menu-portal portal vector-menu" aria-labelledby="p-electronpdfservice-sidebar-portlet-heading-label" > <h3 id="p-electronpdfservice-sidebar-portlet-heading-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Print/export</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="electron-print_pdf" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Module%3ADate&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </nav> <nav id="p-wikibase-otherprojects" class="mw-portlet mw-portlet-wikibase-otherprojects vector-menu-portal portal vector-menu" aria-labelledby="p-wikibase-otherprojects-label" > <h3 id="p-wikibase-otherprojects-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In other projects</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Module:Date" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-meta mw-list-item"><a href="https://meta.wikimedia.org/wiki/Module:Date" hreflang="en"><span>Meta-Wiki</span></a></li><li class="wb-otherproject-link wb-otherproject-species mw-list-item"><a href="https://species.wikimedia.org/wiki/Module:Date" hreflang="en"><span>Wikispecies</span></a></li><li class="wb-otherproject-link wb-otherproject-wikibooks mw-list-item"><a href="https://en.wikibooks.org/wiki/Module:Date" hreflang="en"><span>Wikibooks</span></a></li><li class="wb-otherproject-link wb-otherproject-wikipedia mw-list-item"><a href="https://en.wikipedia.org/wiki/Module:Date" hreflang="en"><span>Wikipedia</span></a></li><li class="wb-otherproject-link wb-otherproject-wikisource mw-list-item"><a href="https://en.wikisource.org/wiki/Module:Date" hreflang="en"><span>Wikisource</span></a></li><li class="wb-otherproject-link wb-otherproject-wikiversity mw-list-item"><a href="https://en.wikiversity.org/wiki/Module:Date" hreflang="en"><span>Wikiversity</span></a></li><li class="wb-otherproject-link wb-otherproject-wikivoyage mw-list-item"><a href="https://en.wikivoyage.org/wiki/Module:Date" hreflang="en"><span>Wikivoyage</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q19963557" title="Link to connected data repository item [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </nav> <nav id="p-lang" class="mw-portlet mw-portlet-lang vector-menu-portal portal vector-menu" aria-labelledby="p-lang-label" > <h3 id="p-lang-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">In Wikipedia</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-anp mw-list-item"><a href="https://anp.wikipedia.org/wiki/%E0%A4%AE%E0%A5%8B%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%82%E0%A4%B2:Date" title="मोड्यूल:Date – Angika" lang="anp" hreflang="anp" data-title="मोड्यूल:Date" data-language-autonym="अंगिका" data-language-local-name="Angika" class="interlanguage-link-target"><span>अंगिका</span></a></li><li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%88%D8%AD%D8%AF%D8%A9:Date" title="وحدة:Date – Arabic" lang="ar" hreflang="ar" data-title="وحدة:Date" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-ary mw-list-item"><a href="https://ary.wikipedia.org/wiki/%D9%85%D9%88%D8%AF%D9%88%D9%84:Date" title="مودول:Date – Moroccan Arabic" lang="ary" hreflang="ary" data-title="مودول:Date" data-language-autonym="الدارجة" data-language-local-name="Moroccan Arabic" class="interlanguage-link-target"><span>الدارجة</span></a></li><li class="interlanguage-link interwiki-as mw-list-item"><a href="https://as.wikipedia.org/wiki/Module:Date" title="Module:Date – Assamese" lang="as" hreflang="as" data-title="Module:Date" data-language-autonym="অসমীয়া" data-language-local-name="Assamese" class="interlanguage-link-target"><span>অসমীয়া</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Azerbaijani" lang="az" hreflang="az" data-title="Modul:Date" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D9%85%D8%A7%DA%98%D9%88%D9%84:Date" title="ماژول:Date – South Azerbaijani" lang="azb" hreflang="azb" data-title="ماژول:Date" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-ban mw-list-item"><a href="https://ban.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Balinese" lang="ban" hreflang="ban" data-title="Modul:Date" data-language-autonym="Basa Bali" data-language-local-name="Balinese" class="interlanguage-link-target"><span>Basa Bali</span></a></li><li class="interlanguage-link interwiki-bcl mw-list-item"><a href="https://bcl.wikipedia.org/wiki/Module:Date" title="Module:Date – Central Bikol" lang="bcl" hreflang="bcl" data-title="Module:Date" data-language-autonym="Bikol Central" data-language-local-name="Central Bikol" class="interlanguage-link-target"><span>Bikol Central</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:%D0%94%D0%B0%D1%82%D0%B0" title="Модуль:Дата – Belarusian" lang="be" hreflang="be" data-title="Модуль:Дата" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-be-x-old mw-list-item"><a href="https://be-tarask.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:%D0%94%D0%B0%D1%82%D0%B0" title="Модуль:Дата – Belarusian (Taraškievica orthography)" lang="be-tarask" hreflang="be-tarask" data-title="Модуль:Дата" data-language-autonym="Беларуская (тарашкевіца)" data-language-local-name="Belarusian (Taraškievica orthography)" class="interlanguage-link-target"><span>Беларуская (тарашкевіца)</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Date" title="Модул:Date – Bulgarian" lang="bg" hreflang="bg" data-title="Модул:Date" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-bh mw-list-item"><a href="https://bh.wikipedia.org/wiki/Module:Date" title="Module:Date – Bhojpuri" lang="bh" hreflang="bh" data-title="Module:Date" data-language-autonym="भोजपुरी" data-language-local-name="Bhojpuri" class="interlanguage-link-target"><span>भोजपुरी</span></a></li><li class="interlanguage-link interwiki-blk mw-list-item"><a href="https://blk.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%80%AC%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0%E1%80%B8:Date" title="မော်ဂျူး:Date – Pa&#039;O" lang="blk" hreflang="blk" data-title="မော်ဂျူး:Date" data-language-autonym="ပအိုဝ်ႏဘာႏသာႏ" data-language-local-name="Pa&#039;O" class="interlanguage-link-target"><span>ပအိုဝ်ႏဘာႏသာႏ</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikipedia.org/wiki/%E0%A6%AE%E0%A6%A1%E0%A6%BF%E0%A6%89%E0%A6%B2:%E0%A6%A4%E0%A6%BE%E0%A6%B0%E0%A6%BF%E0%A6%96" title="মডিউল:তারিখ – Bangla" lang="bn" hreflang="bn" data-title="মডিউল:তারিখ" data-language-autonym="বাংলা" data-language-local-name="Bangla" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-bs mw-list-item"><a href="https://bs.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Bosnian" lang="bs" hreflang="bs" data-title="Modul:Date" data-language-autonym="Bosanski" data-language-local-name="Bosnian" class="interlanguage-link-target"><span>Bosanski</span></a></li><li class="interlanguage-link interwiki-bxr mw-list-item"><a href="https://bxr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Date" title="Модуль:Date – Russia Buriat" lang="bxr" hreflang="bxr" data-title="Модуль:Date" data-language-autonym="Буряад" data-language-local-name="Russia Buriat" class="interlanguage-link-target"><span>Буряад</span></a></li><li class="interlanguage-link interwiki-ceb mw-list-item"><a href="https://ceb.wikipedia.org/wiki/Module:Date" title="Module:Date – Cebuano" lang="ceb" hreflang="ceb" data-title="Module:Date" data-language-autonym="Cebuano" data-language-local-name="Cebuano" class="interlanguage-link-target"><span>Cebuano</span></a></li><li class="interlanguage-link interwiki-ckb mw-list-item"><a href="https://ckb.wikipedia.org/wiki/%D9%85%DB%86%D8%AF%DB%8C%D9%88%D9%88%D9%84:Date" title="مۆدیوول:Date – Central Kurdish" lang="ckb" hreflang="ckb" data-title="مۆدیوول:Date" data-language-autonym="کوردی" data-language-local-name="Central Kurdish" class="interlanguage-link-target"><span>کوردی</span></a></li><li class="interlanguage-link interwiki-co mw-list-item"><a href="https://co.wikipedia.org/wiki/Modulo:Date" title="Modulo:Date – Corsican" lang="co" hreflang="co" data-title="Modulo:Date" data-language-autonym="Corsu" data-language-local-name="Corsican" class="interlanguage-link-target"><span>Corsu</span></a></li><li class="interlanguage-link interwiki-cy mw-list-item"><a href="https://cy.wikipedia.org/wiki/Modiwl:Date" title="Modiwl:Date – Welsh" lang="cy" hreflang="cy" data-title="Modiwl:Date" data-language-autonym="Cymraeg" data-language-local-name="Welsh" class="interlanguage-link-target"><span>Cymraeg</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Danish" lang="da" hreflang="da" data-title="Modul:Date" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-diq mw-list-item"><a href="https://diq.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Zazaki" lang="diq" hreflang="diq" data-title="Modul:Date" data-language-autonym="Zazaki" data-language-local-name="Zazaki" class="interlanguage-link-target"><span>Zazaki</span></a></li><li class="interlanguage-link interwiki-el mw-list-item"><a href="https://el.wikipedia.org/wiki/Module:Date" title="Module:Date – Greek" lang="el" hreflang="el" data-title="Module:Date" data-language-autonym="Ελληνικά" data-language-local-name="Greek" class="interlanguage-link-target"><span>Ελληνικά</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Module:Date" title="Module:Date – English" lang="en" hreflang="en" data-title="Module:Date" data-language-autonym="English" data-language-local-name="English" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-eo mw-list-item"><a href="https://eo.wikipedia.org/wiki/Modulo:Date" title="Modulo:Date – Esperanto" lang="eo" hreflang="eo" data-title="Modulo:Date" data-language-autonym="Esperanto" data-language-local-name="Esperanto" class="interlanguage-link-target"><span>Esperanto</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/M%C3%B3dulo:Date" title="Módulo:Date – Spanish" lang="es" hreflang="es" data-title="Módulo:Date" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-et mw-list-item"><a href="https://et.wikipedia.org/wiki/Moodul:Date" title="Moodul:Date – Estonian" lang="et" hreflang="et" data-title="Moodul:Date" data-language-autonym="Eesti" data-language-local-name="Estonian" class="interlanguage-link-target"><span>Eesti</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Date" title="پودمان:Date – Persian" lang="fa" hreflang="fa" data-title="پودمان:Date" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-fat mw-list-item"><a href="https://fat.wikipedia.org/wiki/Module:Date" title="Module:Date – Fanti" lang="fat" hreflang="fat" data-title="Module:Date" data-language-autonym="Mfantse" data-language-local-name="Fanti" class="interlanguage-link-target"><span>Mfantse</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/Moduuli:Fr:Date" title="Moduuli:Fr:Date – Finnish" lang="fi" hreflang="fi" data-title="Moduuli:Fr:Date" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Module:Date" title="Module:Date – French" lang="fr" hreflang="fr" data-title="Module:Date" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-frp mw-list-item"><a href="https://frp.wikipedia.org/wiki/Module:D%C3%A2ta" title="Module:Dâta – Arpitan" lang="frp" hreflang="frp" data-title="Module:Dâta" data-language-autonym="Arpetan" data-language-local-name="Arpitan" class="interlanguage-link-target"><span>Arpetan</span></a></li><li class="interlanguage-link interwiki-ga mw-list-item"><a href="https://ga.wikipedia.org/wiki/Module:Date" title="Module:Date – Irish" lang="ga" hreflang="ga" data-title="Module:Date" data-language-autonym="Gaeilge" data-language-local-name="Irish" class="interlanguage-link-target"><span>Gaeilge</span></a></li><li class="interlanguage-link interwiki-gom mw-list-item"><a href="https://gom.wikipedia.org/wiki/%E0%A4%8F%E0%A4%95%E0%A4%95:Date" title="एकक:Date – Goan Konkani" lang="gom" hreflang="gom" data-title="एकक:Date" data-language-autonym="गोंयची कोंकणी / Gõychi Konknni" data-language-local-name="Goan Konkani" class="interlanguage-link-target"><span>गोंयची कोंकणी / Gõychi Konknni</span></a></li><li class="interlanguage-link interwiki-gor mw-list-item"><a href="https://gor.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Gorontalo" lang="gor" hreflang="gor" data-title="Modul:Date" data-language-autonym="Bahasa Hulontalo" data-language-local-name="Gorontalo" class="interlanguage-link-target"><span>Bahasa Hulontalo</span></a></li><li class="interlanguage-link interwiki-gu mw-list-item"><a href="https://gu.wikipedia.org/wiki/%E0%AA%B5%E0%AA%BF%E0%AA%AD%E0%AA%BE%E0%AA%97:Date" title="વિભાગ:Date – Gujarati" lang="gu" hreflang="gu" data-title="વિભાગ:Date" data-language-autonym="ગુજરાતી" data-language-local-name="Gujarati" class="interlanguage-link-target"><span>ગુજરાતી</span></a></li><li class="interlanguage-link interwiki-ha mw-list-item"><a href="https://ha.wikipedia.org/wiki/Module:Date" title="Module:Date – Hausa" lang="ha" hreflang="ha" data-title="Module:Date" data-language-autonym="Hausa" data-language-local-name="Hausa" class="interlanguage-link-target"><span>Hausa</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikipedia.org/wiki/%D7%99%D7%97%D7%99%D7%93%D7%94:%D7%AA%D7%90%D7%A8%D7%99%D7%9A" title="יחידה:תאריך – Hebrew" lang="he" hreflang="he" data-title="יחידה:תאריך" data-language-autonym="עברית" data-language-local-name="Hebrew" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hi mw-list-item"><a href="https://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%89%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%82%E0%A4%B2:Date" title="मॉड्यूल:Date – Hindi" lang="hi" hreflang="hi" data-title="मॉड्यूल:Date" data-language-autonym="हिन्दी" data-language-local-name="Hindi" class="interlanguage-link-target"><span>हिन्दी</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Croatian" lang="hr" hreflang="hr" data-title="Modul:Date" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-ht mw-list-item"><a href="https://ht.wikipedia.org/wiki/Module:Date" title="Module:Date – Haitian Creole" lang="ht" hreflang="ht" data-title="Module:Date" data-language-autonym="Kreyòl ayisyen" data-language-local-name="Haitian Creole" class="interlanguage-link-target"><span>Kreyòl ayisyen</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Hungarian" lang="hu" hreflang="hu" data-title="Modul:Date" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/%D5%84%D5%B8%D5%A4%D5%B8%D6%82%D5%AC:Date" title="Մոդուլ:Date – Armenian" lang="hy" hreflang="hy" data-title="Մոդուլ:Date" data-language-autonym="Հայերեն" data-language-local-name="Armenian" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-id mw-list-item"><a href="https://id.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Indonesian" lang="id" hreflang="id" data-title="Modul:Date" data-language-autonym="Bahasa Indonesia" data-language-local-name="Indonesian" class="interlanguage-link-target"><span>Bahasa Indonesia</span></a></li><li class="interlanguage-link interwiki-igl mw-list-item"><a href="https://igl.wikipedia.org/wiki/Module:Date" title="Module:Date – Igala" lang="igl" hreflang="igl" data-title="Module:Date" data-language-autonym="Igala" data-language-local-name="Igala" class="interlanguage-link-target"><span>Igala</span></a></li><li class="interlanguage-link interwiki-ilo mw-list-item"><a href="https://ilo.wikipedia.org/wiki/Modulo:Date" title="Modulo:Date – Iloko" lang="ilo" hreflang="ilo" data-title="Modulo:Date" data-language-autonym="Ilokano" data-language-local-name="Iloko" class="interlanguage-link-target"><span>Ilokano</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikipedia.org/wiki/Module:Date" title="Module:Date – Icelandic" lang="is" hreflang="is" data-title="Module:Date" data-language-autonym="Íslenska" data-language-local-name="Icelandic" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Date" title="モジュール:Date – Japanese" lang="ja" hreflang="ja" data-title="モジュール:Date" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-jv mw-list-item"><a href="https://jv.wikipedia.org/wiki/Modhul:Date" title="Modhul:Date – Javanese" lang="jv" hreflang="jv" data-title="Modhul:Date" data-language-autonym="Jawa" data-language-local-name="Javanese" class="interlanguage-link-target"><span>Jawa</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/%E1%83%9B%E1%83%9D%E1%83%93%E1%83%A3%E1%83%9A%E1%83%98:Date" title="მოდული:Date – Georgian" lang="ka" hreflang="ka" data-title="მოდული:Date" data-language-autonym="ქართული" data-language-local-name="Georgian" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kab mw-list-item"><a href="https://kab.wikipedia.org/wiki/Module:Date" title="Module:Date – Kabyle" lang="kab" hreflang="kab" data-title="Module:Date" data-language-autonym="Taqbaylit" data-language-local-name="Kabyle" class="interlanguage-link-target"><span>Taqbaylit</span></a></li><li class="interlanguage-link interwiki-kbp mw-list-item"><a href="https://kbp.wikipedia.org/wiki/Module:Date" title="Module:Date – Kabiye" lang="kbp" hreflang="kbp" data-title="Module:Date" data-language-autonym="Kabɩyɛ" data-language-local-name="Kabiye" class="interlanguage-link-target"><span>Kabɩyɛ</span></a></li><li class="interlanguage-link interwiki-kcg mw-list-item"><a href="https://kcg.wikipedia.org/wiki/Module:Date" title="Module:Date – Tyap" lang="kcg" hreflang="kcg" data-title="Module:Date" data-language-autonym="Tyap" data-language-local-name="Tyap" class="interlanguage-link-target"><span>Tyap</span></a></li><li class="interlanguage-link interwiki-kk mw-list-item"><a href="https://kk.wikipedia.org/wiki/Module:Date" title="Module:Date – Kazakh" lang="kk" hreflang="kk" data-title="Module:Date" data-language-autonym="Қазақша" data-language-local-name="Kazakh" class="interlanguage-link-target"><span>Қазақша</span></a></li><li class="interlanguage-link interwiki-kn mw-list-item"><a href="https://kn.wikipedia.org/wiki/%E0%B2%AE%E0%B2%BE%E0%B2%A1%E0%B3%8D%E0%B2%AF%E0%B3%82%E0%B2%B2%E0%B3%8D:Date" title="ಮಾಡ್ಯೂಲ್:Date – Kannada" lang="kn" hreflang="kn" data-title="ಮಾಡ್ಯೂಲ್:Date" data-language-autonym="ಕನ್ನಡ" data-language-local-name="Kannada" class="interlanguage-link-target"><span>ಕನ್ನಡ</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/%EB%AA%A8%EB%93%88:Date" title="모듈:Date – Korean" lang="ko" hreflang="ko" data-title="모듈:Date" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-ku mw-list-item"><a href="https://ku.wikipedia.org/wiki/Modul:Dem" title="Modul:Dem – Kurdish" lang="ku" hreflang="ku" data-title="Modul:Dem" data-language-autonym="Kurdî" data-language-local-name="Kurdish" class="interlanguage-link-target"><span>Kurdî</span></a></li><li class="interlanguage-link interwiki-lb mw-list-item"><a href="https://lb.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Luxembourgish" lang="lb" hreflang="lb" data-title="Modul:Date" data-language-autonym="Lëtzebuergesch" data-language-local-name="Luxembourgish" class="interlanguage-link-target"><span>Lëtzebuergesch</span></a></li><li class="interlanguage-link interwiki-lo mw-list-item"><a href="https://lo.wikipedia.org/wiki/Module:Date" title="Module:Date – Lao" lang="lo" hreflang="lo" data-title="Module:Date" data-language-autonym="ລາວ" data-language-local-name="Lao" class="interlanguage-link-target"><span>ລາວ</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/Module:Date" title="Module:Date – Lithuanian" lang="lt" hreflang="lt" data-title="Module:Date" data-language-autonym="Lietuvių" data-language-local-name="Lithuanian" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-lv mw-list-item"><a href="https://lv.wikipedia.org/wiki/Modulis:Datums" title="Modulis:Datums – Latvian" lang="lv" hreflang="lv" data-title="Modulis:Datums" data-language-autonym="Latviešu" data-language-local-name="Latvian" class="interlanguage-link-target"><span>Latviešu</span></a></li><li class="interlanguage-link interwiki-mai mw-list-item"><a href="https://mai.wikipedia.org/wiki/%E0%A4%AE%E0%A5%8B%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%81%E0%A4%B2:Date" title="मोड्युल:Date – Maithili" lang="mai" hreflang="mai" data-title="मोड्युल:Date" data-language-autonym="मैथिली" data-language-local-name="Maithili" class="interlanguage-link-target"><span>मैथिली</span></a></li><li class="interlanguage-link interwiki-mg mw-list-item"><a href="https://mg.wikipedia.org/wiki/Module:Date" title="Module:Date – Malagasy" lang="mg" hreflang="mg" data-title="Module:Date" data-language-autonym="Malagasy" data-language-local-name="Malagasy" class="interlanguage-link-target"><span>Malagasy</span></a></li><li class="interlanguage-link interwiki-mi mw-list-item"><a href="https://mi.wikipedia.org/wiki/Module:Date" title="Module:Date – Māori" lang="mi" hreflang="mi" data-title="Module:Date" data-language-autonym="Māori" data-language-local-name="Māori" class="interlanguage-link-target"><span>Māori</span></a></li><li class="interlanguage-link interwiki-mk mw-list-item"><a href="https://mk.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Date" title="Модул:Date – Macedonian" lang="mk" hreflang="mk" data-title="Модул:Date" data-language-autonym="Македонски" data-language-local-name="Macedonian" class="interlanguage-link-target"><span>Македонски</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Date" title="ഘടകം:Date – Malayalam" lang="ml" hreflang="ml" data-title="ഘടകം:Date" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-mn mw-list-item"><a href="https://mn.wikipedia.org/wiki/Module:Date" title="Module:Date – Mongolian" lang="mn" hreflang="mn" data-title="Module:Date" data-language-autonym="Монгол" data-language-local-name="Mongolian" class="interlanguage-link-target"><span>Монгол</span></a></li><li class="interlanguage-link interwiki-mnw mw-list-item"><a href="https://mnw.wikipedia.org/wiki/%E1%80%99%E1%80%9D%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0:Date" title="မဝ်ဂျူ:Date – Mon" lang="mnw" hreflang="mnw" data-title="မဝ်ဂျူ:Date" data-language-autonym="ဘာသာမန်" data-language-local-name="Mon" class="interlanguage-link-target"><span>ဘာသာမန်</span></a></li><li class="interlanguage-link interwiki-mr mw-list-item"><a href="https://mr.wikipedia.org/wiki/%E0%A4%B5%E0%A4%BF%E0%A4%AD%E0%A4%BE%E0%A4%97:Date" title="विभाग:Date – Marathi" lang="mr" hreflang="mr" data-title="विभाग:Date" data-language-autonym="मराठी" data-language-local-name="Marathi" class="interlanguage-link-target"><span>मराठी</span></a></li><li class="interlanguage-link interwiki-ms mw-list-item"><a href="https://ms.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Malay" lang="ms" hreflang="ms" data-title="Modul:Date" data-language-autonym="Bahasa Melayu" data-language-local-name="Malay" class="interlanguage-link-target"><span>Bahasa Melayu</span></a></li><li class="interlanguage-link interwiki-my mw-list-item"><a href="https://my.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%80%AC%E1%80%BA%E1%80%82%E1%80%BB%E1%80%B0%E1%80%B8:Date" title="မော်ဂျူး:Date – Burmese" lang="my" hreflang="my" data-title="မော်ဂျူး:Date" data-language-autonym="မြန်မာဘာသာ" data-language-local-name="Burmese" class="interlanguage-link-target"><span>မြန်မာဘာသာ</span></a></li><li class="interlanguage-link interwiki-mzn mw-list-item"><a href="https://mzn.wikipedia.org/wiki/%D9%85%D8%A7%DA%98%D9%88%D9%84:Date" title="ماژول:Date – Mazanderani" lang="mzn" hreflang="mzn" data-title="ماژول:Date" data-language-autonym="مازِرونی" data-language-local-name="Mazanderani" class="interlanguage-link-target"><span>مازِرونی</span></a></li><li class="interlanguage-link interwiki-ne mw-list-item"><a href="https://ne.wikipedia.org/wiki/%E0%A4%AE%E0%A5%8B%E0%A4%A1%E0%A5%8D%E0%A4%AF%E0%A5%81%E0%A4%B2:Date" title="मोड्युल:Date – Nepali" lang="ne" hreflang="ne" data-title="मोड्युल:Date" data-language-autonym="नेपाली" data-language-local-name="Nepali" class="interlanguage-link-target"><span>नेपाली</span></a></li><li class="interlanguage-link interwiki-nn mw-list-item"><a href="https://nn.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Norwegian Nynorsk" lang="nn" hreflang="nn" data-title="Modul:Date" data-language-autonym="Norsk nynorsk" data-language-local-name="Norwegian Nynorsk" class="interlanguage-link-target"><span>Norsk nynorsk</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Modul:Date" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-or mw-list-item"><a href="https://or.wikipedia.org/wiki/%E0%AC%AE%E0%AC%A1%E0%AD%8D%E0%AD%9F%E0%AD%81%E0%AC%B2:Date" title="ମଡ୍ୟୁଲ:Date – Odia" lang="or" hreflang="or" data-title="ମଡ୍ୟୁଲ:Date" data-language-autonym="ଓଡ଼ିଆ" data-language-local-name="Odia" class="interlanguage-link-target"><span>ଓଡ଼ିଆ</span></a></li><li class="interlanguage-link interwiki-pa mw-list-item"><a href="https://pa.wikipedia.org/wiki/%E0%A8%AE%E0%A9%8C%E0%A8%A1%E0%A8%BF%E0%A8%8A%E0%A8%B2:Date" title="ਮੌਡਿਊਲ:Date – Punjabi" lang="pa" hreflang="pa" data-title="ਮੌਡਿਊਲ:Date" data-language-autonym="ਪੰਜਾਬੀ" data-language-local-name="Punjabi" class="interlanguage-link-target"><span>ਪੰਜਾਬੀ</span></a></li><li class="interlanguage-link interwiki-pap mw-list-item"><a href="https://pap.wikipedia.org/wiki/Module:Date" title="Module:Date – Papiamento" lang="pap" hreflang="pap" data-title="Module:Date" data-language-autonym="Papiamentu" data-language-local-name="Papiamento" class="interlanguage-link-target"><span>Papiamentu</span></a></li><li class="interlanguage-link interwiki-ps mw-list-item"><a href="https://ps.wikipedia.org/wiki/Module:Date" title="Module:Date – Pashto" lang="ps" hreflang="ps" data-title="Module:Date" data-language-autonym="پښتو" data-language-local-name="Pashto" class="interlanguage-link-target"><span>پښتو</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/M%C3%B3dulo:Data" title="Módulo:Data – Portuguese" lang="pt" hreflang="pt" data-title="Módulo:Data" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/Modul:DateUtils" title="Modul:DateUtils – Romanian" lang="ro" hreflang="ro" data-title="Modul:DateUtils" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Date" title="Модуль:Date – Russian" lang="ru" hreflang="ru" data-title="Модуль:Date" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-rue mw-list-item"><a href="https://rue.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Date" title="Модуль:Date – Rusyn" lang="rue" hreflang="rue" data-title="Модуль:Date" data-language-autonym="Русиньскый" data-language-local-name="Rusyn" class="interlanguage-link-target"><span>Русиньскый</span></a></li><li class="interlanguage-link interwiki-rw mw-list-item"><a href="https://rw.wikipedia.org/wiki/Module:Date" title="Module:Date – Kinyarwanda" lang="rw" hreflang="rw" data-title="Module:Date" data-language-autonym="Ikinyarwanda" data-language-local-name="Kinyarwanda" class="interlanguage-link-target"><span>Ikinyarwanda</span></a></li><li class="interlanguage-link interwiki-sco mw-list-item"><a href="https://sco.wikipedia.org/wiki/Module:Date" title="Module:Date – Scots" lang="sco" hreflang="sco" data-title="Module:Date" data-language-autonym="Scots" data-language-local-name="Scots" class="interlanguage-link-target"><span>Scots</span></a></li><li class="interlanguage-link interwiki-sd mw-list-item"><a href="https://sd.wikipedia.org/wiki/%D9%85%D8%A7%DA%8A%D9%8A%D9%88%D9%84:Date" title="ماڊيول:Date – Sindhi" lang="sd" hreflang="sd" data-title="ماڊيول:Date" data-language-autonym="سنڌي" data-language-local-name="Sindhi" class="interlanguage-link-target"><span>سنڌي</span></a></li><li class="interlanguage-link interwiki-sh mw-list-item"><a href="https://sh.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Serbo-Croatian" lang="sh" hreflang="sh" data-title="Modul:Date" data-language-autonym="Srpskohrvatski / српскохрватски" data-language-local-name="Serbo-Croatian" class="interlanguage-link-target"><span>Srpskohrvatski / српскохрватски</span></a></li><li class="interlanguage-link interwiki-shn mw-list-item"><a href="https://shn.wikipedia.org/wiki/%E1%80%99%E1%80%B1%E1%82%83%E1%82%87%E1%81%B5%E1%80%BB%E1%80%B0%E1%80%B8:Date" title="မေႃႇၵျူး:Date – Shan" lang="shn" hreflang="shn" data-title="မေႃႇၵျူး:Date" data-language-autonym="ၽႃႇသႃႇတႆး " data-language-local-name="Shan" class="interlanguage-link-target"><span>ၽႃႇသႃႇတႆး </span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/Module:Date" title="Module:Date – Sinhala" lang="si" hreflang="si" data-title="Module:Date" data-language-autonym="සිංහල" data-language-local-name="Sinhala" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-simple mw-list-item"><a href="https://simple.wikipedia.org/wiki/Module:Date" title="Module:Date – Simple English" lang="en-simple" hreflang="en-simple" data-title="Module:Date" data-language-autonym="Simple English" data-language-local-name="Simple English" class="interlanguage-link-target"><span>Simple English</span></a></li><li class="interlanguage-link interwiki-skr mw-list-item"><a href="https://skr.wikipedia.org/wiki/%D9%85%D8%A7%DA%88%DB%8C%D9%88%D9%84:Date" title="ماڈیول:Date – Saraiki" lang="skr" hreflang="skr" data-title="ماڈیول:Date" data-language-autonym="سرائیکی" data-language-local-name="Saraiki" class="interlanguage-link-target"><span>سرائیکی</span></a></li><li class="interlanguage-link interwiki-sl mw-list-item"><a href="https://sl.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Slovenian" lang="sl" hreflang="sl" data-title="Modul:Date" data-language-autonym="Slovenščina" data-language-local-name="Slovenian" class="interlanguage-link-target"><span>Slovenščina</span></a></li><li class="interlanguage-link interwiki-smn mw-list-item"><a href="https://smn.wikipedia.org/wiki/Mooduul:Fr:Date" title="Mooduul:Fr:Date – Inari Sami" lang="smn" hreflang="smn" data-title="Mooduul:Fr:Date" data-language-autonym="Anarâškielâ" data-language-local-name="Inari Sami" class="interlanguage-link-target"><span>Anarâškielâ</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikipedia.org/wiki/Moduli:Date" title="Moduli:Date – Albanian" lang="sq" hreflang="sq" data-title="Moduli:Date" data-language-autonym="Shqip" data-language-local-name="Albanian" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-sr mw-list-item"><a href="https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Date" title="Модул:Date – Serbian" lang="sr" hreflang="sr" data-title="Модул:Date" data-language-autonym="Српски / srpski" data-language-local-name="Serbian" class="interlanguage-link-target"><span>Српски / srpski</span></a></li><li class="interlanguage-link interwiki-ss mw-list-item"><a href="https://ss.wikipedia.org/wiki/Module:Date" title="Module:Date – Swati" lang="ss" hreflang="ss" data-title="Module:Date" data-language-autonym="SiSwati" data-language-local-name="Swati" class="interlanguage-link-target"><span>SiSwati</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikipedia.org/wiki/Module:Date" title="Module:Date – Tamil" lang="ta" hreflang="ta" data-title="Module:Date" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-tcy mw-list-item"><a href="https://tcy.wikipedia.org/wiki/%E0%B2%AE%E0%B3%8B%E0%B2%A1%E0%B3%8D%E0%B2%AF%E0%B3%82%E0%B2%B2%E0%B3%8D:Date" title="ಮೋಡ್ಯೂಲ್:Date – Tulu" lang="tcy" hreflang="tcy" data-title="ಮೋಡ್ಯೂಲ್:Date" data-language-autonym="ತುಳು" data-language-local-name="Tulu" class="interlanguage-link-target"><span>ತುಳು</span></a></li><li class="interlanguage-link interwiki-te mw-list-item"><a href="https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B0%BE%E0%B0%A1%E0%B1%8D%E0%B0%AF%E0%B1%82%E0%B0%B2%E0%B1%8D:Date" title="మాడ్యూల్:Date – Telugu" lang="te" hreflang="te" data-title="మాడ్యూల్:Date" data-language-autonym="తెలుగు" data-language-local-name="Telugu" class="interlanguage-link-target"><span>తెలుగు</span></a></li><li class="interlanguage-link interwiki-tg mw-list-item"><a href="https://tg.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB:Date" title="Модул:Date – Tajik" lang="tg" hreflang="tg" data-title="Модул:Date" data-language-autonym="Тоҷикӣ" data-language-local-name="Tajik" class="interlanguage-link-target"><span>Тоҷикӣ</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikipedia.org/wiki/%E0%B8%A1%E0%B8%AD%E0%B8%94%E0%B8%B9%E0%B8%A5:Date" title="มอดูล:Date – Thai" lang="th" hreflang="th" data-title="มอดูล:Date" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-ti mw-list-item"><a href="https://ti.wikipedia.org/wiki/%E1%88%9E%E1%8B%B5%E1%8B%A9%E1%88%8D:Date" title="ሞድዩል:Date – Tigrinya" lang="ti" hreflang="ti" data-title="ሞድዩል:Date" data-language-autonym="ትግርኛ" data-language-local-name="Tigrinya" class="interlanguage-link-target"><span>ትግርኛ</span></a></li><li class="interlanguage-link interwiki-tk mw-list-item"><a href="https://tk.wikipedia.org/wiki/Module:Date" title="Module:Date – Turkmen" lang="tk" hreflang="tk" data-title="Module:Date" data-language-autonym="Türkmençe" data-language-local-name="Turkmen" class="interlanguage-link-target"><span>Türkmençe</span></a></li><li class="interlanguage-link interwiki-tl mw-list-item"><a href="https://tl.wikipedia.org/wiki/Module:Date" title="Module:Date – Tagalog" lang="tl" hreflang="tl" data-title="Module:Date" data-language-autonym="Tagalog" data-language-local-name="Tagalog" class="interlanguage-link-target"><span>Tagalog</span></a></li><li class="interlanguage-link interwiki-tn mw-list-item"><a href="https://tn.wikipedia.org/wiki/Module:Date" title="Module:Date – Tswana" lang="tn" hreflang="tn" data-title="Module:Date" data-language-autonym="Setswana" data-language-local-name="Tswana" class="interlanguage-link-target"><span>Setswana</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/Mod%C3%BCl:Tarih" title="Modül:Tarih – Turkish" lang="tr" hreflang="tr" data-title="Modül:Tarih" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Date" title="Модуль:Date – Ukrainian" lang="uk" hreflang="uk" data-title="Модуль:Date" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-ur mw-list-item"><a href="https://ur.wikipedia.org/wiki/%D9%85%D8%A7%DA%88%DB%8C%D9%88%D9%84:Date" title="ماڈیول:Date – Urdu" lang="ur" hreflang="ur" data-title="ماڈیول:Date" data-language-autonym="اردو" data-language-local-name="Urdu" class="interlanguage-link-target"><span>اردو</span></a></li><li class="interlanguage-link interwiki-uz mw-list-item"><a href="https://uz.wikipedia.org/wiki/Modul:Date" title="Modul:Date – Uzbek" lang="uz" hreflang="uz" data-title="Modul:Date" data-language-autonym="Oʻzbekcha / ўзбекча" data-language-local-name="Uzbek" class="interlanguage-link-target"><span>Oʻzbekcha / ўзбекча</span></a></li><li class="interlanguage-link interwiki-vec mw-list-item"><a href="https://vec.wikipedia.org/wiki/Modulo:Date" title="Modulo:Date – Venetian" lang="vec" hreflang="vec" data-title="Modulo:Date" data-language-autonym="Vèneto" data-language-local-name="Venetian" class="interlanguage-link-target"><span>Vèneto</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/M%C3%B4_%C4%91un:Date" title="Mô đun:Date – Vietnamese" lang="vi" hreflang="vi" data-title="Mô đun:Date" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-war mw-list-item"><a href="https://war.wikipedia.org/wiki/Module:Date" title="Module:Date – Waray" lang="war" hreflang="war" data-title="Module:Date" data-language-autonym="Winaray" data-language-local-name="Waray" class="interlanguage-link-target"><span>Winaray</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/%E6%A8%A1%E5%9D%97:Date" title="模块:Date – Wu" lang="wuu" hreflang="wuu" data-title="模块:Date" data-language-autonym="吴语" data-language-local-name="Wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-xmf mw-list-item"><a href="https://xmf.wikipedia.org/wiki/%E1%83%9B%E1%83%9D%E1%83%93%E1%83%A3%E1%83%9A%E1%83%98:Date" title="მოდული:Date – Mingrelian" lang="xmf" hreflang="xmf" data-title="მოდული:Date" data-language-autonym="მარგალური" data-language-local-name="Mingrelian" class="interlanguage-link-target"><span>მარგალური</span></a></li><li class="interlanguage-link interwiki-yi mw-list-item"><a href="https://yi.wikipedia.org/wiki/%D7%99%D7%97%D7%99%D7%93%D7%94:%D7%93%D7%90%D7%98%D7%A2" title="יחידה:דאטע – Yiddish" lang="yi" hreflang="yi" data-title="יחידה:דאטע" data-language-autonym="ייִדיש" data-language-local-name="Yiddish" class="interlanguage-link-target"><span>ייִדיש</span></a></li><li class="interlanguage-link interwiki-yo mw-list-item"><a href="https://yo.wikipedia.org/wiki/Module:Date" title="Module:Date – Yoruba" lang="yo" hreflang="yo" data-title="Module:Date" data-language-autonym="Yorùbá" data-language-local-name="Yoruba" class="interlanguage-link-target"><span>Yorùbá</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/Module:Date" title="Module:Date – Chinese" lang="zh" hreflang="zh" data-title="Module:Date" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li><li class="interlanguage-link interwiki-zh-min-nan mw-list-item"><a href="https://zh-min-nan.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:Date" title="模組:Date – Minnan" lang="nan" hreflang="nan" data-title="模組:Date" data-language-autonym="閩南語 / Bân-lâm-gú" data-language-local-name="Minnan" class="interlanguage-link-target"><span>閩南語 / Bân-lâm-gú</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/%E6%A8%A1%E7%B5%84:Date" title="模組:Date – Cantonese" lang="yue" hreflang="yue" data-title="模組:Date" data-language-autonym="粵語" data-language-local-name="Cantonese" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q19963557#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </nav> </div> </div> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 17 November 2018, at 05:09.</li> <li id="footer-info-copyright">All structured data from the main, Property, Lexeme, and EntitySchema namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC0 License</a>; text in the other namespaces is available under the <a rel="nofollow" class="external text" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. By using this site, you agree to the <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> and <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy Policy</a>.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Special:MyLanguage/Project:Introduction">About Wikidata</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Special:MyLanguage/Project:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/www.wikidata.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//m.wikidata.org/w/index.php?title=Module:Date&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> <li id="footer-places-data-access"><a href="/wiki/Special:MyLanguage/Wikidata:Data_access">Data access</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> <script>(RLQ=window.RLQ||[]).push(function(){mw.log.warn("This page is using the deprecated ResourceLoader module \"codex-search-styles\".\n[1.43] Use a CodexModule with codexComponents to set your specific components used: https://www.mediawiki.org/wiki/Codex#Using_a_limited_subset_of_components");mw.config.set({"wgHostname":"mw-web.codfw.main-5c59558b9d-dcjm4","wgBackendResponseTime":542,"wgPageParseReport":{"limitreport":{"cputime":"0.151","walltime":"0.288","ppvisitednodes":{"value":574,"limit":1000000},"postexpandincludesize":{"value":16193,"limit":2097152},"templateargumentsize":{"value":295,"limit":2097152},"expansiondepth":{"value":9,"limit":100},"expensivefunctioncount":{"value":2,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":14882,"limit":5000000},"entityaccesscount":{"value":0,"limit":500},"timingprofile":["100.00% 263.304 1 -total"," 84.75% 223.144 1 Module:Date/doc"," 31.45% 82.816 2 Template:Module_rating"," 29.85% 78.589 2 Template:Ombox"," 13.70% 36.073 1 Template:Module-nav"," 7.68% 20.231 5 Template:Module-nav/i18n"," 7.62% 20.056 1 Template:Collapse"," 6.28% 16.524 5 Template:LangSwitch"," 1.49% 3.932 1 Template:LuaLogo"," 1.48% 3.898 3 Template:Tl"]},"scribunto":{"limitreport-timeusage":{"value":"0.066","limit":"10.000"},"limitreport-memusage":{"value":1024656,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-5c59558b9d-dcjm4","timestamp":"20241201225602","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10