Template:DiscordSnowflakeTime: Difference between revisions
Jump to navigation
Jump to search
m bloop |
m i guess this doesnt work |
||
Line 5: | Line 5: | ||
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. | 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: | </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.