timestamprs 0.1.0

A CLI tool for generating timestamps
Documentation
  • Coverage
  • 71.43%
    5 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 44.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 305.37 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Daniel-Ibarrola/ts-rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Daniel-Ibarrola

timestamp

A CLI tool that prepends a timestamp to each line of stdin — similar to the ts command from moreutils.

Installation

cargo install timestamprs

Usage

<command> | timestamp [FORMAT] [OPTIONS]

By default, timestamps use the format %b %d %H:%M:%S (e.g. May 08 14:32:01).

Options

Flag Description
[FORMAT] Custom strftime format string
-s, --since-start Show elapsed time since start (HH:MM:SS.sss) instead of wall-clock time

Examples

# Default wall-clock timestamp
ping google.com | timestamp

# Custom format
ping google.com | timestamp "%Y-%m-%d %H:%M:%S"

# Elapsed time since the command started
./long-running-script.sh | timestamp --since-start

License

MIT