Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Examples  





3 Notes  





4 See also  














Template:TwitterSnowflake/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:TwitterSnowflake

This is a template that wraps and simplifies Module:TwitterSnowflake.

Usage

[edit]

The template accepts a single positional parameter and returns a timestamp based on the ID passed. The timestamp is by default in the format of "January 1, 2021", but if |format=dmy is passed, it's instead presented as "1 January 2021".

Examples

[edit]

{{TwitterSnowflake|1345021162959503360}} returns January 1, 2021.

{{TwitterSnowflake|1345021162959503360|format=dmy}} returns 1 January 2021.

Notes

[edit]

When no date is provided, the date "November 4, 2010" is returned. This also occurs if a number lower than that of a valid snowflake is provided.

See also

[edit]



Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:TwitterSnowflake/doc&oldid=1180295467"

Category: 
Lua-based templates
Hidden category: 
Template documentation pages
 



This page was last edited on 15 October 2023, at 18:47 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki