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 (November 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 12 Nov 2008 09:44:10 -0800
Reply-To:   karma <dorjetarap@GOOGLEMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   karma <dorjetarap@GOOGLEMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: Time interval
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

On 12 Nov, 16:36, nsi...@GMAIL.COM (Sid N) wrote: > I am trying to find the difference (in minutes) between two times which are > in the format hhmm (24-hr format). For example, the difference between 1224 > and 1337 should result in 73 minutes. > > Is there a function in SAS that can be used directly? > > Thank you for your attention. > > Sid

Hi Sid,

You can use intck with the minutes option:

data _null_; x=intck('minute','12:24't,'13:37't); put x=; run;

x=73 HTH


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