![]() |
Timestamp
It seems to me ZO stripped the 'time' and 'os.time' functions from the Lua API. I've had no success at using them :(
So did anyone actually was able to get a proper timestamp ? If so how ? And I mean a real timestamp not GetGametimemilliseconds() |
Hey, maybe GetTimeStamp() will do it.
|
Quote:
That should do it thanks ! |
I use ZO_FormatClockTime() to get the time in ZAM_Stats.
|
Quote:
|
The downside of GetTimeStamp() is that you aren't easily able to get the date and time from it if you ever needed it. There is a date retrieval function for it but no equivalent time one.
|
I guess I would have to store GetTimeString() separately.
|
Quote:
Quote:
|
Quote:
|
Quote:
The second quote goes with the first but was a more in-general question rather than specifically at you. |
No worries :rolleyes:
Now looking to format my Timestamp to human-readable :confused: |
Quote:
In other words. Good luck! I'm guessing there are examples out in the world that do not use the os functions, just a pain in the rear to find. |
I tried GetDateStringFromTimestamp(integer timestamp) but it doesn't work - returns wrong vales. Gave up on displaying the date's timestamp anyways, was more like a little extra I wanted to add.
|
All times are GMT -6. The time now is 01:42 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI