timestampcli

Crates.iotimestampcli
lib.rstimestampcli
version0.2.0
sourcesrc
created_at2021-05-21 20:13:17.57032
updated_at2021-05-28 19:48:59.670074
descriptionA CLI utility for converting timestamps to a more human-readable format.
homepage
repositoryhttps://gitlab.com/ohemelaar/timestampcli
max_upload_size
id400475
size10,080
(ohemelaar)

documentation

README

timestampcli

A utility for better understanding timestamps from the command line.

Usage

It just reads stdin and outputs to stdout, so here are a few ways you could use it:

# Printing to terminal
echo 1234567890 | ts

# Before reading a file
cat logs.json | ts | less

# Converting timestamps in a CSV
ts input.csv > output.csv

Origin

When investigating issues I usually use the command line a lot for searching and transforming logs or data dumps. However, if the key to understanding the problem is a date that appears in an epoch timestamp format I start doing a lot of round trips to a timestamp conversion website. To save myself some time, I thought it would be nice to have a utility that I could throw in between my process' pipes to render timestamps in a more human-readable format.

Commit count: 11

cargo fmt