Opened 11 years ago

Closed 3 years ago

#25 closed enhancement (fixed)

Add new internal variable: _TS (TimeStamp)

Reported by: Lewis Rosenthal Owned by: Gregg Young
Priority: minor Milestone: Version-3.10
Component: Base Version: 3.08
Keywords: Cc:

Description

Following onto my previous enhancement request (ticket #24), I propose a new internal variable, _TS, to return a formatted timestamp.

Currently, Steve advises that he uses something like:

%[_YEAR]%@right[2,0%_MONTH]%@right[2,0%_DAY]-%@right[2,0%_HOUR]%@right[2,0%_MINUTE]

and sets that in an ENV var (SET TS=). By adding _TS as an internal variable and the associated TSFMT formatting template (per my suggestion in ticket #24):

SET TSFMT=YYYY-MM-DD-HH-MM

or

SET TSFMT=YYYY-MM-DD-HH-MM-SS

all that would be required would be to use a simple:

%_TS

to insert a timestamp of the desired precision on the command line or in a batch file.

Change History (3)

comment:1 by Steven Levine, 6 years ago

Milestone: Version-3.09Version-3.10

Ticket retargeted after milestone closed

comment:2 by Gregg Young, 3 years ago

Owner: set to Gregg Young
Status: newaccepted

comment:3 by Gregg Young, 3 years ago

Resolution: fixed
Status: acceptedclosed

Rev 38327

Note: See TracTickets for help on using tickets.