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 (February 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: ViAnn Beadle <vab88011@gmail.com>
Comments: cc: Sara House <shouse1@luc.edu>
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


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