Please enable JavaScript to view this site.

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

 

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

 

"format"The date / time format

 

 

 

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).

 

/E"regex"Only display lines that match the regular expression.

 

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

 

/UnicodeSpecify the input encoding (UTF-16LE, UTF-8, or ASCII). The default is the current TCC output encoding.