I’m hoping for a way to convert week number to month and day.
I got the week number by using
os.date("%W") --Returns 15 because we're in the 15th week of 2022
But now I would like to convert the week number to time in seconds similar to what os.time() returns.
print(os.time({
year=2020, month=4, day=15, -- Date components
hour=16, min=28, sec=0 -- Time components
})) --> 1586968080
The problem with this is that it doesn’t take in week number so I need to somehow calculate the month & day based on the week number and then plug that into os.time().