View source for Module:Weekly site information
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.main(frame)
-- Define the start date of Week 1
local week1Start = os.time{year=2024, month=9, day=8}
-- Get current date
local currentDate = os.time()
-- Calculate the difference in days from the start of Week 1 to the current date
local daysDifference = os.difftime(currentDate, week1Start) / (24 * 60 * 60)
-- Return the last Weekly Briefing Release
return math.floor(daysDifference / 7)
end
return p
000
1:0
Templates used on this page:
- Template:High priority (view source)
- Template:Ombox (view source)
- Template:Template link expanded (view source)
- Template:Tlx (view source)
- Module:Arguments (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/styles.css (view source)
- Module:Error (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:Template link general (view source)
- Module:Weekly site information (view source)
- Module:Weekly site information/doc (view source)
- Module:Yesno (view source)
Return to Module:Weekly site information.