Re: [foxboro] Date comparison in Unix scripts
- From: "Deo, Terry" <Terry.Deo@xxxxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Fri, 19 Apr 2002 12:42:02 -0400
Specifically, I am trying to manage some system PM items. I would like to
be able to check a list (flat file) of tasks and determine if the task is
overdue. I would also like to determine when the task is more than X days
overdue to flag it as a high priority. The second part requires the ability
to compare the stored date with the current date to see how many days in the
past it is.
Thanks,
Terry
-----Original Message-----
From: Turner, Jason [mailto:Jason.Turner@xxxxxxxxx]
Sent: April 18, 2002 7:40 PM
To: 'foxboro@xxxxxxxxxxxxx'
Subject: Re: [foxboro] Date comparison in Unix scripts
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
_______________________________________________________________________
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
- Follow-Ups:
- Re: [foxboro] Date comparison in Unix scripts
- From: Winston Jenks
Other related posts:
- » Re: [foxboro] Date comparison in Unix scripts
- » Re: [foxboro] Date comparison in Unix scripts
- » Re: [foxboro] Date comparison in Unix scripts
- » Re: [foxboro] Date comparison in Unix scripts
- » Re: [foxboro] Date comparison in Unix scripts
- Re: [foxboro] Date comparison in Unix scripts
- From: Winston Jenks