User Submitted Macro

Type the Time

Written by Anthony Muller, IT Support, EGR Group

What it does

The simplicity of this Macro belies its usefulness. It types the time in the format yyyy-mm-dd

This format is chronologically and lexicographically consistent. It is handy for stamping a time reference on notes or document edits, or for naming files or logs. When used consistently as either a prefix or a suffix to a filename, the resultant files will remain in chronological order even when you sort by filename.

To install

Download the macro file and save it to your hard drive. Open the macro file or import the macros into your existing macro file by clicking File, Import, Import Macros.

Type the Time – for Macro Express 3umtypethetimeME3.mex
Type the Time – for Macro Express 5 and Macro Express Proumtypethetime.mex

To use

Press Ctrl+Alt+t

How it works

This macro demonstrates the flexibility of the Date/Time macro command. Your macro can type out the date and time in nearly any format you can think of.