danielkhoo.io

twitter

github

Unix Timestamp NPM CLI

Like most devs, I often find myself needing to convert unix timestamps to human readable dates or just to get the current unix timestamp.

So finally instead of googling "epoch time converter" for the millionth time, I made a handy cli tool to do exactly that.

nixtime is meant as a simple cli tool that can be invoked with npx

Example Usage:

Get current timestamp

$ npx nixtime
---------------------------
1727895286719

Convert unix timestamps

$ npx 1727895286719
---------------------------
Wed, 02 Oct 2024 18:54:46 GMT