2001-03-06 05:29:24 +08:00
|
|
|
/* tzfile.h
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _TZFILE_H
|
|
|
|
#define _TZFILE_H
|
|
|
|
|
2003-09-25 11:51:51 +08:00
|
|
|
#define SECSPERMIN 60
|
|
|
|
#define MINSPERHOUR 60
|
|
|
|
#define HOURSPERDAY 24
|
|
|
|
#define DAYSPERWEEK 7
|
2000-02-18 03:38:33 +08:00
|
|
|
#define DAYSPERNYEAR 365
|
2003-09-25 11:51:51 +08:00
|
|
|
#define DAYSPERLYEAR 366
|
|
|
|
#define SECSPERHOUR (SECSPERMIN * MINSPERHOUR)
|
|
|
|
#define SECSPERDAY ((long) SECSPERHOUR * HOURSPERDAY)
|
|
|
|
#define MONSPERYEAR 12
|
|
|
|
|
|
|
|
#define TM_SUNDAY 0
|
|
|
|
#define TM_MONDAY 1
|
|
|
|
#define TM_TUESDAY 2
|
|
|
|
#define TM_WEDNESDAY 3
|
|
|
|
#define TM_THURSDAY 4
|
|
|
|
#define TM_FRIDAY 5
|
|
|
|
#define TM_SATURDAY 6
|
|
|
|
|
|
|
|
#define TM_JANUARY 0
|
|
|
|
#define TM_FEBRUARY 1
|
|
|
|
#define TM_MARCH 2
|
|
|
|
#define TM_APRIL 3
|
|
|
|
#define TM_MAY 4
|
|
|
|
#define TM_JUNE 5
|
|
|
|
#define TM_JULY 6
|
|
|
|
#define TM_AUGUST 7
|
|
|
|
#define TM_SEPTEMBER 8
|
|
|
|
#define TM_OCTOBER 9
|
|
|
|
#define TM_NOVEMBER 10
|
|
|
|
#define TM_DECEMBER 11
|
|
|
|
|
|
|
|
#define TM_YEAR_BASE 1900
|
|
|
|
|
|
|
|
#define EPOCH_YEAR 1970
|
|
|
|
#define EPOCH_WDAY TM_THURSDAY
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
#define isleap(y) (((y) % 4) == 0 && ((y) % 100) != 0 || ((y) % 400) == 0)
|
2000-10-28 13:41:44 +08:00
|
|
|
#endif
|