This plugin reimplements the TS command and
the @DATEFMT function. It can be used
in older versions of TCC which do not provide TS or @DATEFMT,
including TCC/LE.
TS is very similar to TCC’s internal
TS command, but makes an attempt to identify the encoding of the
incoming (piped) text. There are a few other minor improvements, including
support for incremental times, cumulative times, and UTC time stamps.
@DATEFMT is, again, quite similar to
TCC’s, but it supports a much broader range of dates, plus a few new
tokens and
modifiers, and C-style
character escapes.
Note that the TS command is almost always used to receive
text from a pipe, and pipe commands run in a new shell. If you want to pipe
to TS, you must ensure that this plugin is loaded in the new
shell, e.g. by copying TimeStamp.dll
to TCC’s PlugIns directory.