Template:DiscordSnowflakeTime: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
m whoops lmao
Keira (talk | contribs)
m bloop
Line 1: Line 1:
{{#time: r | @{{#expr:(({{{1}}}/ (2^22)) + 1420070400000) / 1000 round 0}}}}
<noinclude>
 
Usage: <code><nowiki>{{DiscordSnowflakeTime|{{#explode:DISCORD SHARE URL|/|-1}}}}</nowiki></code>
 
note that these times might be off by like a second either way, due to probably rounding errors. Could probably be fixed by turning the pseudo-bitshift into a nested expr with its own rounding down? idk.
 
</noinclude><includeonly>{{#time: r | @{{#expr:(({{{1}}}/ (2^22)) + 1420070400000) / 1000 round 0}}}}</includeonly>

Revision as of 09:49, 9 March 2020


Usage: {{DiscordSnowflakeTime|{{#explode:DISCORD SHARE URL|/|-1}}}}

note that these times might be off by like a second either way, due to probably rounding errors. Could probably be fixed by turning the pseudo-bitshift into a nested expr with its own rounding down? idk.