Searched refs:year (Results 1 - 5 of 5) sorted by relevance
/bionic/libc/tzcode/ |
H A D | asctime.c | 32 ** The ISO C 1999 and POSIX 1003.1-2004 standards prohibit padding the year, 41 ** For years that are more than four digits we put extra spaces before the year 43 ** a digit within a year and truncating the year (operating on the assumption 83 char year[INT_STRLEN_MAXIMUM(int) + 2]; local 97 ** Use strftime's %Y to generate the year, to avoid overflow problems 102 strftime(year, sizeof year, "%Y", timeptr); 107 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), 111 year); [all...] |
H A D | strftime.c | 371 case 'G': /* ISO 8601 year (four digits) */ 372 case 'g': /* ISO 8601 year (two digits) */ 375 ** year (the first Monday as the first day of week 1) as a decimal number 380 ** "Week 01 of a year is per definition the first week which has the 381 ** Thursday in this year, which is equivalent to the week which contains 382 ** the fourth day of January. In other words, the first week of a new year 383 ** is the week which has the majority of its days in the new year. Week 01 384 ** might also contain days from the previous year and the week before week 385 ** 01 of a year is the last week (52 or 53) of the previous year eve 392 int year; local [all...] |
H A D | localtime.c | 140 DAY_OF_YEAR, /* n = day of year */ 900 ** Day of year. 918 ** Given a year, a rule, and the offset from UT at the time that rule takes 919 ** effect, calculate the year-relative time that rule takes effect. 923 transtime(const int year, register const struct rule *const rulep, argument 932 leapyear = isleap(year); 950 ** n - day of year. 967 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year; 1000 ** "value" is the year 1084 register int year; local [all...] |
/bionic/libc/bionic/ |
H A D | time64.c | 115 /* 28 year Julian calendar cycle */ 183 static int is_exception_century(Year year) argument 185 int is_exception = ((year % 100 == 0) && !(year % 400 == 0)); 199 Year year; local 216 year = 70; 217 while( year < orig_year ) { 218 days += length_of_year[IS_LEAP(year)]; 219 year++; 223 year 282 cycle_offset(Year year) argument 317 safe_year(const Year year) argument 490 Year year = input_date->tm_year + 1900; local 523 Year year = 70; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/time/ |
H A D | wcsftime.c | 324 case 'G': /* ISO 8601 year (four digits) */ 325 case 'g': /* ISO 8601 year (two digits) */ 328 ** year (the first Monday as the first day of week 1) as a decimal number 333 ** "Week 01 of a year is per definition the first week which has the 334 ** Thursday in this year, which is equivalent to the week which contains 335 ** the fourth day of January. In other words, the first week of a new year 336 ** is the week which has the majority of its days in the new year. Week 01 337 ** might also contain days from the previous year and the week before week 338 ** 01 of a year is the last week (52 or 53) of the previous year eve 345 int year; local [all...] |
Completed in 114 milliseconds