NATION

PASSWORD

Timestamp tag

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Haganham
Diplomat
 
Posts: 934
Founded: Aug 17, 2021
Father Knows Best State

Timestamp tag

Postby Haganham » Sat Apr 02, 2022 10:23 am

I'd like a tag that we can use to express time with needing to muss about with timezones and daylight savings and what not. So I suggest a tag that converts unix time to system time.

For example for me in EST;
Code: Select all
[time]1652006700[/time]
Would display as Sun May 08 2022 6:45am

Bonus points if you can give the option of not displaying the date so;
Code: Select all
[time=nodate]1652006700[/time]
would be 6:45am

Pinkies crossed that the thing used for news events can be used for it.

As for what the utility is, pretty much any time you need people to be available at a given time, it will be easier to manage if you can just express the time and have it display in the readers local time, for example being able to say that update starts at 12:00 is a lot easier then saying update starts at 12:00 EST, unless you're on daylight savings in which case it starts at 11, unless we're also on daylight savings in which case it's 12 again. Ugh. Let computers do that.
Remember kids, if it doesn't have private property rights, competitive markets and voluntary exchange then it's just sparkling feudalism.
TITO Tactial Officer
Assistant WA secretary: 10000 Islands, TEP
Praefectus Praetorio, Caesar: Oatland
Cartographer: Forest

Return to Technical

Who is online

Users browsing this forum: Smatland, Sports, Tepertopia

Advertisement

Remove ads