1.0.0 • Published 7 months ago
get-unix-timestamp v1.0.0
get-unix-timestamp
NPM package to create a UNIX timestamp.
How to use
Install the package and run it:
npm install get-unix-timestamp
get-unix-timestamp
Or use npx:
npx get-unix-timestamp
Optional parameters
--date: Convert a specific date to a UNIX timestamp:
npx get-unix-timestamp --date="2023-10-14"
> 1697241600
npx get-unix-timestamp --date="2023-10-14t00:00:00"
> 1697238000
--timestamp: Convert a UNIX timestamp to Date:
npx get-unix-timestamp --timestamp=1697151600
> 2023-10-12T23:00:00.000Z
1.0.0
7 months ago