One approach is:
COMPUTE Hours= CTIME.hours(Date1-Date2) .
Dennis Deck, PhD
RMC Research Corporation
111 SW Columbia Street, Suite 1200
Portland, Oregon 97201-5843
voice: 503-223-8248 x715
voice: 800-788-1887 x715
fax: 503-223-8248
[hidden email]
-----Original Message-----
From: Khaleel Hussaini [mailto:
[hidden email]]
Sent: Wednesday, July 16, 2008 4:25 PM
Subject: date and times
I seem to have forgotten how to do extract time between two dates. The
data I have is as follows
V1 V2
05-APR-2008 00:01:00 06-APR-2008 23:20:00
. 01-APR-2008 23:20:00
01-APR-2008 23:20:00 .
I want to compute time difference in hours excluding the missing data.
How can I do this using SPSS 12 Syntax?
Best
SKH.
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD