Article View: comp.sys.next.software
Article #1601Re: Adding/Subtracting Time With Improv
From: Tim Pugh
Date: Thu, 17 Dec 1992 17:48
Date: Thu, 17 Dec 1992 17:48
32 lines
1701 bytes
1701 bytes
In article <johnr.724605076@mik.uky.edu> johnr@nx39.mik.uky.edu (john s
roberts) writes:
> Does anyone know how to get it to subtract and add time like you would
> on a time sheet. For example, I would type in an IN time and an OUT
> time and it would calculate the amount of time worked in hours.
>
> Thanks,
> John
> --
> -=+ John S. Roberts, Jr. FACTS Center McVey Hall Room 100 +=-
> -=+ Communications Consultant Work: (606)257-2275 Home: 272-1417 +=-
> -=+ University of Kentucky Ham: KD4UBM DoD: 727 '85 Shadow +=-
> -=+ Computing Center HomeUUCP: johnr%agnostic@ms.uky.edu +=-
----
Monday Tuesday ...
---------------|----------
IN 8:00 AM
OUT 1:30 PM
time(hrs) 5.50
The IN and OUT are formatted with a time/date field. The time(hrs) is
formatted with a normal real number (0.00). When the times are subtracted,
they return a number with units of days. So to obtain hours, multiple by 24.0.
Monday:'time(hrs)' = (Monday:OUT - Monday:IN )*24.0
--
Tim Pugh
College of Oceanic and Atmospheric Sciences
Oregon State University
tpugh@oce.orst.edu
Technical Details
Message-ID:
<1gqehiINNd96@gaia.ucs.orst.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!gaia.ucs.orst.edu!newsReferences:
<johnr.724605076@mik.uky.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!gaia.ucs.orst.edu!news From: tpugh@oce.orst.edu (Tim Pugh) Newsgroups: comp.sys.next.software Subject: Re: Adding/Subtracting Time With Improv Message-ID: <1gqehiINNd96@gaia.ucs.orst.edu> Date: 17 Dec 92 17:48:34 GMT Article-I.D.: gaia.1gqehiINNd96 References: <johnr.724605076@mik.uky.edu> Reply-To: Tim Pugh <tpugh@oce.orst.edu> Organization: University Computing Services - Oregon State University Lines: 32 NNTP-Posting-Host: tsunami.oce.orst.edu