Aug 23, 2004 #1 Vandy02 Programmer Jan 7, 2003 151 US How do I caclualte the difference between two dates: ie. startdate - enddate ???? thanks
Aug 23, 2004 #2 columb IS-IT--Management Feb 5, 2004 1,231 EU This is difficult in shell scripting and easy in perl. Do you have access to perl? Upvote 0 Downvote
Aug 23, 2004 #3 johnherman MIS Oct 10, 2003 2,323 US thread822-775255 This thread shows how to convert a date to Julian date. After you convert both dates to Julian format, just subtract one date from another. ------------------------- The trouble with doing something right the first time is that noboby appreciates how difficult it was. - Steven Wright Upvote 0 Downvote
thread822-775255 This thread shows how to convert a date to Julian date. After you convert both dates to Julian format, just subtract one date from another. ------------------------- The trouble with doing something right the first time is that noboby appreciates how difficult it was. - Steven Wright
Feb 6, 2005 #4 municipal Programmer Jan 1, 2001 62 IL How do I know if today is Sunday in ksh Upvote 0 Downvote
Feb 6, 2005 #5 PHV MIS Nov 8, 2002 53,708 FR [ $(date +%u) -eq 7 ] && echo Sunday Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
[ $(date +%u) -eq 7 ] && echo Sunday Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244