Crates.io | timestampcli |
lib.rs | timestampcli |
version | 0.2.0 |
source | src |
created_at | 2021-05-21 20:13:17.57032 |
updated_at | 2021-05-28 19:48:59.670074 |
description | A CLI utility for converting timestamps to a more human-readable format. |
homepage | |
repository | https://gitlab.com/ohemelaar/timestampcli |
max_upload_size | |
id | 400475 |
size | 10,080 |
A utility for better understanding timestamps from the command line.
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
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.