Date conversion script
Nov. 5th, 2002 10:02 amI had to send some log files off to someone who doesn't know anything about Unix or the way dates work. all of the dates in the log file were in epoch time. to make it easy I wrote a CGI shell script to make it easy for her to convert dates back and forth between epoch time and a real understandable time.
you will notice that it's all pull down menu's, in working with end users for so long I thought this would be the easiest way to make it idiot proof. they can't put too many numbers into the year or the day 32 or misspell the month. you can however ask for February the 31st... it's not perfect but pretty good for an ho
ur of work.
here is the code:
http://www.hugme.org/freebsd/scripts/date.txt
you can run it here:
http://www.hugme.org/cgi-bin/date.cgi
you will notice that it's all pull down menu's, in working with end users for so long I thought this would be the easiest way to make it idiot proof. they can't put too many numbers into the year or the day 32 or misspell the month. you can however ask for February the 31st... it's not perfect but pretty good for an ho
ur of work.
here is the code:
http://www.hugme.org/freebsd/scripts/date.txt
you can run it here:
http://www.hugme.org/cgi-bin/date.cgi