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 (June 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 3 Jun 2004 11:56:28 -0400
Reply-To:     Ed Heaton <EdHeaton@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ed Heaton <EdHeaton@WESTAT.COM>
Subject:      Re: Time Informat
Comments: To: "Ravikumar. J" <ravi_pune@YAHOO.COM>
Content-Type: text/plain

Ravi,

You can use the HMS function to post-process your input. Try reading the value as a number and then applying the following.

time = hms( int( time / 10000 ) , int( mod( time , 10000 ) / 100 ) , mod( time , 100 ) ) ;

Ed

Edward Heaton, SAS Senior Systems Analyst, Westat (An Employee-Owned Research Corporation), 1600 Research Boulevard, RW-3541, Rockville, MD 20850-3195 Voice: (301) 610-4818 Fax: (301) 610-5128 mailto:EdHeaton@Westat.com http://www.Westat.com

-----Original Message----- From: Ravikumar. J [mailto:ravi_pune@YAHOO.COM] Sent: Thursday, June 03, 2004 10:48 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Time Informat

Hello,

Whats the informat that I need to use to read the time value stored as a string in hhmmss format ?

I need to read the time value '163758'. Is there any time informat for this ?

Quick reply would really help ... :)

Thanks and Regards Ravi

________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/


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