Date: Fri, 15 Feb 2008 16:10:48 -0500
Reply-To: Richard Ristow <wrristow@mindspring.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Richard Ristow <wrristow@mindspring.com>
Subject: Re: Computing time spent
In-Reply-To: <002a01c87014$08e60bd0$1ab22370$@com>
Content-Type: text/plain; charset="us-ascii"; format=flowed
At 03:47 PM 2/15/2008, ViAnn Beadle wrote:
>Assuming that both are datetime variables you can subtract time2
>from time1 which will give you time in seconds and then you can go
>from there to the correct level of granularity through division.
Exactly. Though, instead of division, I think it gives more readable
code to use the CTIME functions:
CTIME.MINUTES(time2-time1), or CTIME.HOURS(time2.time1), or CTIME.DAYS
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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
|