Template:DiscordSnowflakeTime: Difference between revisions
Jump to navigation
Jump to search
m whoops lmao |
m i guess this doesnt work |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#time: | <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: U | @{{#expr:(({{{1}}}/ (2^22)) + 1420070400000) / 1000 round 0}}}}</includeonly> |
Latest revision as of 10:02, 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.