Re: It it now a leap year?

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

 



On Thu, 09 Aug 2007 06:02:27 +0930, Tim wrote:

> Andrew Parker:
>>> For bash the following will display 061 if its currently a leap year,
>>> 060 otherwise
>>> 
>>> date -d "$(date +%Y)/03/01" +%j
> 
> Kevin J. Cummings:
>> It doesn't work with dates after 2037/03/01 ....
> 
> Leaving you with thirty years to develop a solution, or spend a few
> minutes pondering whether to bother...  ;-)
> 
> But seriously, although some might think you don't need to worry about
> such things, there are programs that will need to do some work using a
> date from the future.  The matter is more urgent than immediately
> obvious.
> 
[...]

My program deals only with the present and the immediate past.
Since in 30 years I hope to celebrate (?) my 98th, it would be
quite interesting to see if the problem still concerns me. :)

Mike.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux