Searched defs: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 (void) strftime(year, sizeof year, "%Y", timeptr); 107 ((strlen(year) <= 4) ? ASCTIME_FMT : ASCTIME_FMT_B), 111 year); local [all...] |
H A D | strftime.c | 419 case 'G': /* ISO 8601 year (four digits) */ 420 case 'g': /* ISO 8601 year (two digits) */ 423 ** year (the first Monday as the first day of week 1) as a decimal number 428 ** "Week 01 of a year is per definition the first week which has the 429 ** Thursday in this year, which is equivalent to the week which contains 430 ** the fourth day of January. In other words, the first week of a new year 431 ** is the week which has the majority of its days in the new year. Week 01 432 ** might also contain days from the previous year and the week before week 433 ** 01 of a year is the last week (52 or 53) of the previous year eve 440 int year; local [all...] |
H A D | localtime.c | 139 #define DAY_OF_YEAR 1 /* n = day of year */ 190 static int_fast32_t transtime(int year, const struct rule * rulep, 821 ** Day of year. 839 ** Given a year, a rule, and the offset from UT at the time that rule takes 840 ** effect, calculate the year-relative time that rule takes effect. 844 transtime(const int year, register const struct rule *const rulep, argument 853 leapyear = isleap(year); 871 ** n - day of year. 888 yy0 = (rulep->r_mon <= 2) ? (year - 1) : year; 1000 register int year; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/time/ |
H A D | wcsftime.c | 329 case 'G': /* ISO 8601 year (four digits) */ 330 case 'g': /* ISO 8601 year (two digits) */ 333 ** year (the first Monday as the first day of week 1) as a decimal number 338 ** "Week 01 of a year is per definition the first week which has the 339 ** Thursday in this year, which is equivalent to the week which contains 340 ** the fourth day of January. In other words, the first week of a new year 341 ** is the week which has the majority of its days in the new year. Week 01 342 ** might also contain days from the previous year and the week before week 343 ** 01 of a year is the last week (52 or 53) of the previous year eve 350 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...] |
Completed in 1234 milliseconds