timestamp

Crates.iotimestamp
lib.rstimestamp
version0.1.1
sourcesrc
created_at2016-08-06 21:14:21.568036
updated_at2016-08-07 08:02:35.361142
descriptionA program that appends a timestamp to stdin
homepage
repositoryhttps://github.com/jkcclemens/timestamp
max_upload_size
id5911
size18,606
Anna (anna-is-cute)

documentation

README

timestamp

@bendem wrote a program like this in C++, so I wanted to write my own version in Rust for funsies.

Default format is %c, but you can change it by passing in any arg.

% {echo 'Hi'; sleep 2; echo 'Hi again'} | timestamp
[Sat Aug  6 17:04:57 2016] Hi
[Sat Aug  6 17:04:59 2016] Hi again
% {echo 'Hi'; sleep 2; echo 'Hi again'} | timestamp '%S'
[11] Hi
[13] Hi again
Commit count: 9

cargo fmt