Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nowTable = os.date("*t") --// gets the time now
- local christmas = { --// creates table for christmas date
- year = nowTable.year,
- month = 12,
- day = 25
- }
- local nowStamp = os.time(nowTable) --// get time stamp for now
- local christmasStamp = os.time(christmas) --// get the time stamp for christmas
- local timeDifference = (christmasStamp - nowStamp)
- local min = (timeDifference/60)
- local hour = (min/60)
- local day = (hour/24)
- print(day)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement