LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 15 Dec 2006 16:53:45 +0000
Reply-To:     toby dunn <tobydunn@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         toby dunn <tobydunn@HOTMAIL.COM>
Subject:      Re: How to calculate time difference
Comments: To: suthakariyer@YAHOO.COM
In-Reply-To:  <20061215163835.95300.qmail@web50605.mail.yahoo.com>
Content-Type: text/plain; format=flowed

COnvert both to SAS Time Values, then subtract the two and the difference, flag if difference is greater than 1800.

Toby Dunn

To sensible men, every day is a day of reckoning. ~John W. Gardner

The important thing is this: To be able at any moment to sacrifice that which we are for what we could become. ~Charles DuBois

Don't get your knickers in a knot. Nothing is solved and it just makes you walk funny. ~Kathryn Carpenter

From: Suthakar Iyer <suthakariyer@YAHOO.COM> Reply-To: Suthakar Iyer <suthakariyer@YAHOO.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: How to calculate time difference Date: Fri, 15 Dec 2006 08:38:35 -0800

Hi, Time1 is a Character variable with the format 29:22:41 Time2 is a Numeric variable with the format 32.55

If the time1 is different from time2 by more than 0.5 hrs , I need to flag them or identitfy them.

Thanks for the help in advance.

Suthakar

__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

_________________________________________________________________ MSN Shopping has everything on your holiday list. Get expert picks by style, age, and price. Try it! http://shopping.msn.com/content/shp/?ctId=8000,ptnrid=176,ptnrdata=200601&tcode=wlmtagline


Back to: Top of message | Previous page | Main SAS-L page