Hello!
So, I’m wondering how would I get date and time (sec,min,hour,day,…) from Unix Epoch time.
For example, how would I convert this: 1582379858 to Sat, 22 Feb 2020 13:58:19 GMT ← Not exactly like that, just to get some values like sec,min,hour,day,month,year,…
I’ve seen some posts with scripts that do that, but I also saw, that they mentioned, os.date was not a feature at that time.
This is a bit complicated, but once you got all the numbers and stuff (how many days make up a year, how much make up a specific month, a week, and such). This is going to be a very complicated process, but you are gonna have to try dividing that long string of numbers into years, months, weeks, days, hours, minutes, and seconds, and stuff.
It’s hard for me to explain all of this due to complication, but I guess you’re looking for date and time without using os.date()? Is that correct?
Well, I’ve actually found the solution for what I wanted (I saw you were typing when I replied to my post that I got something but it wasn’t accurate - I was wrong, it was accurate, I was looking at wrong time when checking on another website).
Basically, I only wanted something like that os.date("!*t",lastOnline)["hour"],
but still Thank you for your help!