Module:Upcoming Birthdays: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) mNo edit summary |
RiceEmpress (talk | contribs) mNo edit summary |
||
Line 22: | Line 22: | ||
local timeNow = os.time{year=2025, month=12, day=25} | local timeNow = os.time{year=2025, month=12, day=25} | ||
local dateNow = lang:formatDate("F d, Y H:i T",'@' .. timeNow) | local dateNow = lang:formatDate("F d, Y H:i T",'@' .. timeNow) | ||
return | return os.diff(dateNow,os.time()) | ||
end | end | ||
return p | return p |
Revision as of 10:53, 29 September 2025
Documentation for this module may be created at Module:Upcoming Birthdays/doc
local capiunto = require 'capiunto' local lang = mw.language.getContentLanguage() local currentYear = lang:formatDate("Y") local nextYear = lang:formatDate("Y") + 1 birthdays = {} birthdays[1] = {'Hikari Aoki','22 January'} birthdays[2] = {'Sera Hoshikawa','14 March'} birthdays[3] = {'Grace Kamenashi','01 April'} birthdays[4] = {'Arietta Antiphon','18 June'} birthdays[5] = {'Joker','18 June'} birthdays[6] = {'Asuka Fujita','30 July'} birthdays[7] = {'Sumire Hitori','09 September'} birthdays[8] = {'Hitori','09 September'} birthdays[9] = {'Hakuno Nekoda','25 December'} birthdays[10] = {'Shion Nekoda','29 December'} local p = {} function p.main() local timeNow = os.time{year=2025, month=12, day=25} local dateNow = lang:formatDate("F d, Y H:i T",'@' .. timeNow) return os.diff(dateNow,os.time()) end return p