Today I Learned

hashrocket A Hashrocket project

Change Time to UTC or Local

Today I discovered yet another cool feature from the vim-speeddating plugin.

To change a time in a Vim buffer to UTC, type d<C-A> with the cursor over the word. For local time, d<C-X>.

A use case would be setting a created_at time in a test, or time-stamping a manual log entry.

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.