LSL function to retrieve SLT
tracked
Raime Crisp
I feel this has to have been discussed before.... but can we get a version of llGetTimestamp() that returns SLT so we're not reduced to adding 70+ lines of code and the associated overhead just to get the same timestamp that's showing up in every viewer?
Log In
Nelson Jenkins
I'm upvoting this but for the record, can't this be accomplished with
llGetWallclock
alone? You can convert that to HH:MM:SS in well under a dozen lines, not anywhere near 70+ unless you are doing something very wrong. Actually wouldn't you have to call it anyways to determine if DST is in effect if you're converting llGetTimestamp
into SLT?Maybe instead we should do a series of functions that can manipulate a timestamp a la datetime structs/classes/what-have-you in other languages for a couple of reasons (for example, it's only possible to determine if DST is in effect in North America and a couple other countries, Europe and Oceania have different schedules).
WolfGang Senizen
It might be nice for this to be a generic function that you can ask for various timezones.
One of them being SLT (SLT being a bit weird, as its a mix of PST and PDT).
Even better if it supports formatting a la https://cplusplus.com/reference/ctime/strftime/
Spidey Linden
marked this post as
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.