Skip to content

print out the date in any format(including epoch) for any time in the past or future. I have found this very useful for date math in shell

Notifications You must be signed in to change notification settings

daniellawrence/retrodate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

retrodate

Once you have Makefile and retrodate.c in the same directory run the following command

  make

You should see the following

make
gcc    -c -o retrodate.o retrodate.c
gcc  retrodate.o -o retrodate

Then just run the compiled binary to view to how to...

./retrodate 
usage: retrodate [-+]days [format]
	-days:	time in the past, 5 days ago would be -5
	+days:	time in the future, this time next week would be +7 or 7
	format:	Use the date format to controll how the retro date is printed

See man date for more details on formatting the date

About

print out the date in any format(including epoch) for any time in the past or future. I have found this very useful for date math in shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages