Re: [foxboro] Date comparison in Unix scripts
- From: "Turner, Jason" <Jason.Turner@xxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Fri, 19 Apr 2002 11:39:43 +1200
No. Dates are always yucky, on any os. A moment's thought about things
like daylight savings and leap years will start to reveal some of the
horrible complexities, and why there just isn't an easy way.
What are you trying to do? There may be an easier way to do this using
"make". If you have perl, there's a glimmer of hope too.
Cheers
Jason
> -----Original Message-----
> From: Deo, Terry [SMTP:Terry.Deo@xxxxxxxxxxxx]
> Sent: Friday, 19 April 2002 08:34
> To: foxboro@xxxxxxxxxxxxx
> Subject: [foxboro] Date comparison in Unix scripts
>
>
> Does anyone know an easy way to compare dates in a Unix script? I am
> looking to read a date from a data file and compare it to the current
> system
> date. The idea is to determine when certain tasks are beyond the required
> completion date.
>
> Regards,
> Terry
>
> Terry J. Deo
> Staff Systems Engineer
> Infineum USA LP
> Byway Chemical Plant, Linden, NJ
> V: 908.474.6179
> F: 908.474.7609
>
>
DISCLAIMER: This electronic message together with any attachments is
confidential. If you are not the intended recipient, do not copy, disclose or
use the contents in any way. Please also advise us by return e-mail that you
have received the message and then please destroy. Carter Holt Harvey is not
responsible for any changes made to this message and / or any attachments after
sending by Carter Holt Harvey. We use virus scanning software but exclude all
liability for viruses or anything similar in this email or any attachment.
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
Other related posts: