Module:CurrentDateOutput
From Absit Omen Lexicon
Documentation for this module may be created at Module:CurrentDateOutput/doc
local Date = require('Module:Date')._Date local CurrentDate = require('Module:CurrentDate') local p = {} function p.date_text(frame) local current = Date('currentdate') return current:text() end function p.date_iso(frame) local current = Date('currentdate') return current:text('ymd') end function p.first_date_text(frame) local first = Date(CurrentDate.firstDate.y, CurrentDate.firstDate.m, CurrentDate.firstDate.d) return first:text() end function p.first_date_iso(frame) local first = Date(CurrentDate.firstDate.y, CurrentDate.firstDate.m, CurrentDate.firstDate.d) return first:text('ymd') end function p.y(frame) local current = Date('currentdate') return current:text('%{year}') end function p.m(frame) local current = Date('currentdate') return current:text('%{month}') end function p.d(frame) local current = Date('currentdate') return current:text('%{day}') end return p