Thread View: comp.sys.next.software
2 messages
2 total messages
Started by john s roberts
Thu, 17 Dec 1992 15:11
Adding/Subtracting Time With Improv
Author: john s roberts
Date: Thu, 17 Dec 1992 15:11
Date: Thu, 17 Dec 1992 15:11
11 lines
984 bytes
984 bytes
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 +=-
Re: Adding/Subtracting Time With Improv
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads