TS(1)
π¦ ts β timestamp input, bestie π¦
πΈ NAME πΈ
ts β timestamp input. iconic.
π¦ SYNOPSIS π¦
ts [-r] [-i | -s] [-m] [format]
π DESCRIPTION π
okay so ts adds a timestamp to the beginning of each line of input. literally every line gets that timestamp glow-up β¨.
The optional format parameter controls how the timestamp is formatted, as used by strftime(3). The default format is "%b %d %H:%M:%S". In addition to the regular strftime conversion specifications, "%.S" and "%.s" and "%.T" are like "%S" and "%s" and "%T", but provide subsecond resolution (ie, "30.00001" and "1301682593.00001" and "1:15:30.00001"). subsecond slay π
π flags & format tea π
-rβ if the-rswitch is passed, it instead converts existing timestamps in the input to relative times, such as"15m5s ago". Many common timestamp formats are supported. Note that theTime::DurationandDate::Parseperl modules are required for this mode to work. Currently, converting localized dates is not supported. If both-rand a format is passed, the existing timestamps are converted to the specified format.
When either -i or -s is passed, ts reports incremental timestamps instead of absolute ones. The default format changes to "%H:%M:%S", and "%.S" and "%.s" can be used as well.
-iβ in case of-i, every timestamp will be the time elapsed since the last timestamp.-sβ in case of-s, the time elapsed since start of the program is used.-mβ makes the system's monotonic clock be used.
π ENVIRONMENT π
The standard TZ environment variable controls what time zone dates are assumed to be in, if a timezone is not specified as part of the date. timezone vibes, handled π
π AUTHOR π
Copyright 2006 by Joey Hess <id@joeyh.name>
Licensed under the GNU GPL. respect the legend π
okay bye bestie π«Ά β this was the moreutils ts(1) page, dated 2024-12-11. mwah π
π¦ where this page comes from
- arch rolling: moreutils 0.70-1 Β· GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms