sublimeText - TimeNow package to insert date/time

in «tip» by Michael Beard
Tags: , , , , ,

Timenow package

What it solved

I'm constantly needing to insert the date/time into a Markdown document, and it would be nice to not have to do it manually all the time.

Found the package Timenow and installed it in SublimeText 3.

Here is my Default(OSX).sublime-keymap--User file (from Preferences | Key Bindings) for the Timenow package:

[
    {"keys": ["ctrl+'"], "command": "tn_time"},
    {"keys": ["ctrl+shift+'"], "command": "tn_stamp"},
    {"keys": ["ctrl+shift+;"], "command": "tn_date"},
    {"keys": ["ctrl+;"], "command": "tn_datetime"}  
]

and, here is the user override that I used for the Timenow package, as I wanted something different than what was already there (not much different, but different, never the less):

It's in the Timenow-sublime-settings -- Preferences | Package Settings | Timenow | settings - User:

/*
 * More about those patterns - http://devdocs.io/python~3.6/library/time#time.strftime
 *
 * date     - 2013-10-02
 * time     - 10:24:01
 * datetime - 2013-10-02 10:24
 * stamp    - 131002102355
 *
 */

{
  "date_format": "%Y-%m-%d",
  "time_format": "[%H:%M:%S]",
  "datetime_format": "[%Y-%m-%d %H:%M]",
  "stamp_format": "%Y%m%d%H%M%S"
}

I chose the ctrl-; and ctrl-' (and then shift of both of those) due to where they are on the keyboard. It just makes it easier to reach and they weren't being used by anything else, so ... I really care about the time and datetime formats -- the other two I could lose if I had to. I don't see much use for them right now.

Anyway, I've got it now.