Lines Matching defs:year
42 /* 2: leap year or normal year */
265 /* Not every year have 29 days in Feb when set DST. */
329 STATIC INT32 DstGetDayOfMonth(INT32 year, INT32 month, INT32 mweek, INT32 wday)
332 INT32 firstWeekDay; /* First week day in this month of the specified year. */
333 INT32 firstMdayOfTargetWday; /* First target month day in this month of the specified year. */
338 time.tm_year = year;
368 if (targetMdayOfTargetWday > g_monLengths[(INT32)isleap(year + TM_YEAR_BASE)][month]) {
382 STATIC INT32 DateDecode(INT32 year, const CHAR *dstString, INT32 *month, INT32 *monDay, INT32 *sec)
431 *monDay = DstGetDayOfMonth(year, *month, monWeek, weekDay);
442 STATIC INT64 DstConfigDecode(INT32 year, const CHAR *dstString)
449 ret = DateDecode(year, dstString, &month, &monDay, &sec);
454 time.tm_year = year;
471 const INT32 year = 70; /* 70 stands for epoch time */
477 dstStart = DstConfigDecode(year, strDstStart);
478 dstEnd = DstConfigDecode(year, strDstEnd);
601 int dst_inquire(int year, struct tm *pstDstStart, struct tm *pstDstEnd)
619 dstStart = DstConfigDecode(year, g_strDstStart);
620 dstEnd = DstConfigDecode(year, g_strDstEnd);