| Crates.io | timestamp |
| lib.rs | timestamp |
| version | 0.1.1 |
| created_at | 2016-08-06 21:14:21.568036+00 |
| updated_at | 2016-08-07 08:02:35.361142+00 |
| description | A program that appends a timestamp to stdin |
| homepage | |
| repository | https://github.com/jkcclemens/timestamp |
| max_upload_size | |
| id | 5911 |
| size | 18,606 |
@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