1TS(1) TS(1)
2
3
4
6 ts - timestamp input
7
9 ts [-r] [format]
10
12 ts adds a timestamp to the beginning of each line of input.
13
14 The optional format parameter controls how the timestamp is formatted,
15 as used by strftime(3). The default format is "%b %d %H:%M:%S".
16
17 If the -r switch is passed, it instead converts existing timestamps in
18 the input to relative times, such as "15m5s ago". Many common timestamp
19 formats are supported. Note that the Time::Duration and Date::Parse
20 perl modules are required for this mode to work.
21
22 If both -r and a format is passed, the format existing timestamps are
23 converted to the specified format.
24
26 The standard TZ environment variable controls what time zone dates are
27 assumed to be in, if a timezone is not specified as part of the date.
28
30 Copyright 2006 by Joey Hess <joey@kitenet.net>
31
32 Licensed under the GNU GPL.
33
34
35
36moreutils 2008-04-12 TS(1)