How to convert UnixTimestampMillis to a date
print(DateTime.now().UnixTimestampMillis) --17953843443
how do I convert this to an readable time, e.g. “15 May 2024 …”
How to convert UnixTimestampMillis to a date
print(DateTime.now().UnixTimestampMillis) --17953843443
how do I convert this to an readable time, e.g. “15 May 2024 …”
You could also use tick() which would be minutes = divide by 60
hours = minutes divided by 60
days = hours divided by 24
month = day divided by 30 – might need to adjust
Years = month divided by 12
So might be similar
Why not use an easier way with os.date()?
more on that here:
https://www.lua.org/pil/22.1.html