Re: It it now a leap year?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux