~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/date_func.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: date_func.h 11702 2007-12-26 13:50:40Z rubidium $ */
 
1
/* $Id: date_func.h 13594 2008-06-20 21:14:10Z frosch $ */
2
2
 
3
3
/** @file date_func.h Functions related to dates. */
4
4
 
16
16
void ConvertDateToYMD(Date date, YearMonthDay *ymd);
17
17
Date ConvertYMDToDate(Year year, Month month, Day day);
18
18
 
 
19
static inline bool IsLeapYear(Year yr)
 
20
{
 
21
        return yr % 4 == 0 && (yr % 100 != 0 || yr % 400 == 0);
 
22
}
 
23
 
19
24
#endif /* DATE_FUNC_H */