Purpose:Reads line from STDIN, prefix a date/time stamp, and write the lines to STDOUT

 

Format:TS [/D /T "format"]

 

"format"The date / time format

 

/D(ate)

/T(ime)

 

Usage:

 

TS is intended to be used in pipes, when you need to know when each line was received.

 

If you don't specify any options, TS defaults to /D /T.

 

Options:

 

/"..."The format string. See @DATEFMT for details on format arguments. If you specify a format string, it will override /D and/or /T.

 

/DPrefix each line with the current date (in yyyy-mm-dd format).

 

/T Prefix each line with the current time (in hh:mm:ss.ms format).