timestamp icon indicating copy to clipboard operation
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:

timestampSat, 06 Jul 2013 08:55:49
date2013-07-06
time08:55:49
now2013-07-06T08:55:49
datetime2013-07-06T08:55:49
isoD2013-07-06T08:55:49
utcnow2013-07-06T15:55:49
utcdatetime2013-07-06T15:55:49