Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 572 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 572 Bytes

epochadd

add year, month, day to unix epoch timestamp

  • supports year, month, day in positive and negative integers
  • supports seconds, milliseconds or nanoseconds timestamps
  • all datetimes in UTC

download

curl https://raw.githubusercontent.com/Luke31/epochadd/main/epochadd --output ~/bin/epochadd

usage

epochadd <inputepoch> <years> <months> <days>

asciicast

Hint

Doesn't work for dates after 2286-11-20 17:46:39 (epoch 9999999999)