Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!lll-winken!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!otc!metro!basser!nswitgould!fidogate From: john_gibney%830.312@fidogate.fido.oz (John Gibney) Newsgroups: comp.lang.c Subject: Time/Date Calculations Message-ID: <14653@nswitgould.cs.uts.oz> Date: 5 Sep 89 17:49:30 GMT Sender: fido@nswitgould.cs.uts.oz Organization: A Fidonet node, gated through nswitgould.oz Lines: 33 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)