timestamp
timestamp copied to clipboard
Sublime Text 2 plug-in for TimeStamps. A repo from the Gist.
timestamp
Sublime Text 2 plug-in to insert TimeStamps into your file. Type 'now' and then hit tab for a quick timestamp.
This is a plugin and repository made from my gist so that it can handle Pull Requests and be registered with Sublime Package Control. The original code was written by [Rob Crowie] 1 and then fixed by [reima] 2.
#. To install this:
Sublime's menu Tools -> New Plugin...,
Paste this gist over the sample given (use the raw button to see the gist as text)
Save the file in your Sublime Packages directory. File -> Save As.. should suggest
an appropriate spot. I recommend the name timestamp.py
All done. It should work immediately.
#. To use this:
Type "date" and hit tab. Also try the words isoD
, now
, datetime
, utcnow
, utcdatetime
,
date
and time
followed by tab. You may have to hit tab twice if you have another matching symbol
in your current namespace.
#. Here are the current timestamp formats:
timestamp | Sat, 06 Jul 2013 08:55:49 |
date | 2013-07-06 |
time | 08:55:49 |
now | 2013-07-06T08:55:49 |
datetime | 2013-07-06T08:55:49 |
isoD | 2013-07-06T08:55:49 |
utcnow | 2013-07-06T15:55:49 |
utcdatetime | 2013-07-06T15:55:49 |