TS — Add time stamps to lines from
a pipe.
Syntax:
TS /CP:n /D /F /I /S /T /U "format"
/CP:n | code page (for non-Unicode text) |
/D | include the date |
/F | add a final footer line |
/I | show incremental times (since the previous line) |
/S | show cumulative times (since the start time) |
/T | include the time |
/U or /UTC | Coordinated Universal Time |
| format | format string, as in @DATEFMT; quote it and double all percent signs |
TS reads lines from a pipe, and prepends the current time
to each.
If you give a format string, any /D
or /T will be ignored.
If you do not specify any of /D /T /I /S or format,
the default behavior is to include both the date and the time.
• Important: Remember that pipe commands run in a new shell! To pipe to this command, you must ensure that this plugin is loaded in the new shell, e.g. by copying the plugin .DLL to TCC’s PlugIns directory.
• Note: All options except
/D, /T, and format
are new, and not supported by TCC’s internal TS command.
To be compatible with TCC, do not use any option other than /D,
/T, or format.
/CP:n
lets you specify a code page for non-Unicode text. You can give a code page
number, e.g. /CP:1252, or else the letter A
for the current ANSI (Windows) code page, or O for the current
OEM (console) code page. If you do not specify any /CP: code
page option, the default is the current OEM code page.
/F adds a final footer line when the
pipe closes. This would be useful to measure any delay between the last line
printed, and completion of the input command.