Re: It it now a leap year?
- From: Kevin Kofler <kevin.kofler@xxxxxxxxx>
- Date: Thu, 9 Aug 2007 01:11:37 +0000 (UTC)
Mike - EMAIL IGNORED <m_d_berger_1900 <at> yahoo.com> writes:
Is there a system call or variable that will
tell me if it is now a leap year, or should I
do the arithmetic?
Qt has a static function QDate::isLeapYear (or QDate::leapYear in Qt 3) which
takes a year as the argument.
To check if we're in a leap year right now, that would be:
QDate::isLeapYear(QDate::currentDate().year())
Kevin Kofler
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- References:
- It it now a leap year?
- From: Mike - EMAIL IGNORED
- It it now a leap year?
- Prev by Date: Re: Thunderbird
- Next by Date: Re: Thunderbird
- Previous by thread: Re: It it now a leap year?
- Next by thread: Re: It it now a leap year?
- Index(es):