| 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 |
|
| 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
|