#(hatzefatz) unix timecode formatting

28 messages · Page 1 of 1 (latest)

normal basalt
#

Hey everybody!
I do have a question about a unix timecode formatting. Is there a way to format a unix code human readable?

I know there is a tag to get the unix time but i get this tag from a database and want to display that nice.
Thanks for help!

gaunt frostBOT
#

(hatzefatz) unix timecode formatting

gaunt frostBOT
#

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.

austere tapir
#

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

unreal belfry
#

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.

normal basalt
normal basalt
#

and should we make a feature thread out of that one?

pearl templeBOT
#
Changed to Feature

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.

compact mulch
#

If you want a workaround until it's implemented: #denizen-pre-forum message

torpid veldt
#

<time[1970/01/01].add[<[epoch].div[1000]>s]>

short fableBOT
torpid veldt
#

^ convert to timetag and use timetag.format of some sort

still whale
#

!s epoch

vast daggerBOT
still whale
#

!t epoch_millis

vast daggerBOT
still whale
#

ye

unreal belfry
#

Along with

#

!t to_zone

vast daggerBOT
# unreal belfry !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"

Returns

TimeTag

normal basalt
#

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.

opaque forge
#

This is now a tag and is in the latest dev build #commit-log message

#

<ElementTag.millis_to_time>

normal basalt
#

Perfect, thank you very much!