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" /Unicode=[UTF-16LE | UTF-8 | ASCII[,UTF-16LE | UTF-8 | ASCII]]]

 

"format"The date / time format

 

/F(ooter)

 

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.

 

/CDisplay a cumulative timestamp (since the start of TS) in the format hh:mm:ss.ms

 

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

 

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

 

/FDisplay a footer with a timestamp and "---- End of Pipe ----" when the pipe is closed.

 

/IDisplay an incremental timestamp (since the previous line) in the format hh:mm:ss.ms

 

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

 

/UnicodeSpecify the input and output encoding [UTF-16LE | UTF-8 | ASCII]. If you don't specify an input encoding type, input will default to the current TCC output encoding. If you don't specify an output encoding type, output will default to the current TCC output encoding.