Hi I’d like to parse a date with corona, however I’m not sure how to do this with the os.date function. I can parse the current date, but how can I use a future date with this function?
Thanks in advance! [import]uid: 43961 topic_id: 8811 reply_id: 308811[/import]
function seconds2dhms(secs)
local left=secs
local days=math.floor(left/86400)
left=left%86400
local hours=math.floor(left/3600)
left=left%3600
local minutes=math.floor(left/60)
local seconds=left%60
return {days,hours,minutes,seconds}
end