#(hatzefatz) unix timecode formatting
28 messages · Page 1 of 1 (latest)
(hatzefatz) unix timecode formatting
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
i could have sworn there was a tag for this.. but im not seeing one now
if there indeed isnt this should be a feature request to convert from said epoch millis to timetag
I believe I requested it a long time ago.
I made my own proc for it but I'd really like a tag for it.
would you be so nice to share that with us?
and should we make a feature thread out of that one?
Thread is now a Feature thread. This indicates a request for a new feature to the plugin, that both (A) does not already exist and (B) reasonably can be added. If you are unsure whether this applies, use </helpthread:1028674284870180883> to change back to a normal help thread.
If you want a workaround until it's implemented: #denizen-pre-forum message
<time[1970/01/01].add[<[epoch].div[1000]>s]>
Tag parse results for <time[1970/01/01].add[<util.time_now.epoch_millis.div[1000]>s]>: https://paste.denizenscript.com/View/120868
time@2024/03/07_13:05:08:0464_Z
^ convert to timetag and use timetag.format of some sort
only the opposite i think?
!s epoch
[Partial Name Match] !Tag timetag.epoch_millis.
!t epoch_millis
Returns the number of milliseconds between this TimeTag and the Unix Epoch (Jan. 1st 1970).
ElementTag(Number)
ye
Pretty much this
Along with
!t to_zone
Returns a copy of the TimeTag, converted to the specified time zone.
The hour (and when relevant: day/month/year) of this TimeTag will automatically be converted from the value for the original TimeTag's timezone to the new timezone.
For some zones, the minute might also change.
Zone input can be like 'UTC-5' or like 'America/New_York'
You can find a list of named zones here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones using the "TZ database name"
TimeTag
I used that here now: <time[1970/1/1].add[<[unixtimecode]>s].format> That is working fine. But i think it will be still a good idea to have a tag for that right away.
This is now a tag and is in the latest dev build #commit-log message
<ElementTag.millis_to_time>
Perfect, thank you very much!