[H-GEN] time in C/C++
Frank Brand
fbrand at uq.net.au
Wed Dec 29 01:33:08 EST 1999
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
On Wed, 29 Dec 1999, Martin Pool wrote:
>
> I'm sure you can find good calendar libraries in your favourite
> language. It seems silly to reimplement it. For financial applications
> the Mac-style "uint32 days since 1904" might be good, and it neatly
> avoids leap seconds altogether.
>
Well yes, that is where this all started for me. I thought it would be easy to
find a library to give me the days between two dates and just re-use the code. I
have been surprised at how few I have been able to find. Maybe I have been
looking in the wrong places (every chance I have been as it is not something I
have had a l lot of experience doing). In fact I have stuffed about with it so
long it would have been much more efficient to write the function and forget it.
Guess I'm just a stubbborn old bugger...but it served a purpose...I've
increased my knowledge of some of the time functions which I have really never
had need to look at before.
It was a lot easier to get Datenumber() or whatever the built in function is in
VB
--
Frank Brand
E-mail: fbrand at uq.net.au
Home Page: http://www.uq.net.au/~zzfbrand
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list