home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MATH
/
HRS411.ZIP
/
HRS411.DOC
< prev
next >
Wrap
Text File
|
1991-07-24
|
3KB
|
63 lines
Hrs411 Version 4.11
This program takes a starting and ending time and calculates the difference
as hours and fractions of hours. For example an ending time of 3:45
and a starting time of 1:15 returns the value 2.500 hours. The program
allows for times ending in the evening and starting in the morning such as
ending at 2:30 and beginning at 10:15. The result would be 4.250 hours.
The maximum difference using 12 hour entry is 12 hours (actually 11.999).
For time spans of greater than 12 hours use Military time such as 20:00 for
8:00 PM. Then a span of 24 hours is allowed.
The entry format is as HH:MM (HH;MM also allowed for fumble fingers like me)
and 2:00 can be entered simply as 2. Entering AM or PM will result in
error and the program will ask you for input in the HH:MM format.
Fraction of minutes are not allowed (example 3:45.6 is NOT allowed). Actually
you can enter more than 24 hours and more than 60 minutes (though I don't
know why you'd want to) but the total input length is limited to 6 characters
including the ':'.
Entry errors won't hang up the program or give goofy results. The program
will simply ask for either an ending time or starting time until it gets
one in the format that it wants.
As the program calculates the time elapsed between times, it also keeps
a running total of of the times until you hit 'C' or 'c' to clear the total.
This is useful if you're keeping up with the total time per day on a project
or projects. Hitting 'C' clears the total and resets the set counter to
1. As you complete the time total at the end of the day for one project
you would clear the total and start over for another project.
To exit the program hit 'Q' or 'q'. The program instructs you as it runs.
Three files are included with this program. The only one needed
is HRS411.EXE. The other two are this file, HRS411.DOC, and the
source code, HRS411.C, (Turbo C++) for those of you who are
interested. To use the program simply copy HRS411.EXE to your hard
drive or a floppy you want to use. You may want to shorten the
name for convience. Assuming the file is in A: drive and you are
going to copy to a directory UTILITY on you hard drive the
following command would copy the program and give it a shorter
name:
For example: copy a:\HRS411.EXE C:\UTILITY\HRS.EXE
or whatever floats your boat.
And the program's free. I work cheap. It is not public domain. I
retain the copyrights. You can distribute it and use it with no
restrictions. You can make copies of it. You may not charge for
it or include it with other programs being sold. You may not
change it in any way. The executable program, HRS411.EXE, the
documentation, HRS411.DOC and the source code HRS411.C are under
copyright with all rights reserved. Parts of the program are
under Borland copyright.
Suggestions and constructive criticism can be sent to
GEnie D.TERRY6 or COMPUSERVE 76662,3035.
Doug Terry
Angleton, Texas