Time/Date Calculations
John Gibney
john_gibney%830.312 at fidogate.fido.oz
Wed Sep 6 03:49:30 AEST 1989
Original to: all
I am trying to find any algorithms for doing date and time
calculations using either TURBO C or Microsoft QuickBASIC.
I know that C has the functions asctime, difftime, etc. but
I would like to obtain the algorithms behind these procedures.
If you are at all familiar with VAX/VMS, there are system
services SYS$BINTIM and SYS$ASCTIM which will take ASCII
strings and convert them to quadwords and vice-versa. I
would like to build some functions in C that would do
something similar.
Specifically, in QuickBASIC, I would like to take an ASCII
string and convert it to a quadword, say, so that I can do
arithmetic on it, and then convert it back to an ASCII
string. I also want to do this using C... I have a couple
of projects in the works that need these functions.
Any help you could provide would be most appreciated.
John :-)
---
* Origin: Southern Mail CBCS - An OZNET System (Opus 7:830/312)
More information about the Comp.lang.c
mailing list