💾 Archived View for jb55.com › projects › datefmt.gmi captured on 2021-12-05 at 23:47:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2021-12-06)

-=-=-=-=-=-=-

datefmt

datefmt is a simple C program that formats unix timestamps in text streams

Example

Let's say we have some logs that contain unix timestamps:

EVENTS  1638499687   blahblah log1
EVENTS  1638499717   blahblah log2

We can pipe this log into datefmt to convert these timestamps into human-readable dates:

EVENTS  2021-12-02 18:48   blahblah log1
EVENTS  2021-12-02 18:48   blahblah log2

It's as simple as that! It comes with some heuristics so that it doesn't parse timestamp outside of a reasonable range.

Download

Tarballs are available here, please feel free to package this for your linux distribution of choice!

Latest Version (0.2)

SHA256SUMS

SHA256SUMS Signature

My pgp key

Download and verify:

Older versions

Contributing

Send patches to `jb55@jb55.com`

Sources

How to send email patches