Mike - EMAIL IGNORED wrote:
Is there a system call or variable that will tell me if it is now a leap year, or should I do the arithmetic?
$ man dysize For a portable way in C I suppose one could do this: convert 11:59:59 pm 28 Feb of (year) to a time [mktime] convert 12:00:00 am 1 Mar of (year) to a time [mktime] find the time between them [difftime] Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that!