Re: Slightly off -topic: Adding dates in ksh?

From: Seabold, Evelyn (Evelyn.Seabold_at_REXHEALTH.COM)
Date: 04/01/05

  • Next message: Adams Kevin J: "Re: Slightly off -topic: Adding dates in ksh?"
    Date:         Thu, 31 Mar 2005 17:09:05 -0500
    To: aix-l@Princeton.EDU
    
    

    Hey Andrew,

    (export TZ=XYZ+24; date) gives you yesterday(in GMT)
    (export TZ=XYZ-24; date) gives you tomorrow(in GMT)

    Adjust for your personal time zone.

    Evelyn

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
    Drew T
    Sent: Thursday, March 31, 2005 4:47 PM
    To: aix-l@Princeton.EDU
    Subject: Slightly off -topic: Adding dates in ksh?

    I am looking for the best way to do date arithmatic in ksh?

    Say you want to add dates or subract dates, what is the best way?

    Thanks in advance,

    Andrew

    This email is confidential and intended solely for the use of the
    individual or entity to whom it is addressed. If you have received this
    email in error please notify the system manager at mailadmin@bisys.com and
    delete the email immediately.

    ----- Confidentiality Notice -----
    This e-mail and any attached documents contain confidential information belonging
    to the sending entity, Rex Healthcare, and is intended only for the use of the
    individual(s) or entity(s) associated with the recipient addresses listed in the message
    header. The authorized recipient of this information is prohibited from disclosing this
    information to any other party. If you are not the intended recipient, you are hereby
    notified that any disclosure, copying, distribution or action taken in reliance on the
    contents of the email and/or attachments is strictly prohibited. If you received this
    e-mail transmission in error, please notify the sender immediately to arrange for return
    or destruction of this information.

    To report abuse or inappropriate use, please email abuse@rexhealth.com.(b)


  • Next message: Adams Kevin J: "Re: Slightly off -topic: Adding dates in ksh?"

    Relevant Pages

    • Re: Oracle 9i on B50 machine
      ... The authorized recipient of this information is prohibited from disclosing this ... If you are not the intended recipient, ... e-mail transmission in error, please notify the sender immediately to arrange for return ...
      (AIX-L)
    • Re: Date format of ls -l command
      ... The authorized recipient of this information is prohibited from disclosing this ... If you are not the intended recipient, ... e-mail transmission in error, please notify the sender immediately to arrange for return ...
      (AIX-L)
    • Re: gunzip
      ... >> Green, Simon ... The authorized recipient of this information is ... > prohibited from disclosing this ... > e-mail transmission in error, ...
      (AIX-L)
    • Re: Non-Disclosure Agreements
      ... The obligations of the recipient shall terminate five ... >> all Materials and discontinue all further use of the Information. ... >> Upon the disclosing party's request, ... from a practical point of view it is impossible to destroy all ...
      (sci.electronics.design)
    • Re: Insert variable as new line with sed
      ... It just inserts "$string" rather than the value ... The authorized recipient of this information is prohibited from disclosing this ... If you are not the intended recipient, ...
      (AIX-L)