Home
last modified time | relevance | path

Searched refs:era (Results 1 – 5 of 5) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/time/
Dgmtime_r.c70 int era, weekday, year; in gmtime_r() local
96 era = (days >= 0 ? days : days - (DAYS_PER_ERA - 1)) / DAYS_PER_ERA; in gmtime_r()
97 eraday = days - era * DAYS_PER_ERA; /* [0, 146096] */ in gmtime_r()
104 year = ADJUSTED_EPOCH_YEAR + erayear + era * YEARS_PER_ERA + (month <= 1); in gmtime_r()
Dstrftime.c408 get_era_info (const struct tm *tim_p, const wchar_t *era) in get_era_info() argument
410 get_era_info (const struct tm *tim_p, const char *era) in get_era_info()
435 while (era) in get_era_info()
437 dir = era; in get_era_info()
438 era += 2; in get_era_info()
439 offset = ERA_STRTOL (era, &c, 10); in get_era_info()
440 era = c + 1; in get_era_info()
441 stm.tm_year = ERA_STRTOL (era, &c, 10) - YEAR_BASE; in get_era_info()
448 era = c + 1; in get_era_info()
449 if (era[0] == '-' && era[1] == '*') in get_era_info()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/locale/
Dsetlocale.h136 const char *era; member
Dnl_langinfo.c293 ret = (char*) __get_time_locale (locale)->era; in nl_langinfo_l()
/picolibc-3.7.0-3.6.0/newlib/
DChangeLog-20155088 * libc/time/strftime.c: Add support for era and alt_digits data from
5096 (era_info_t): New type to store era info.
5097 (get_era_info): New function to fetch era info matching incoming
5099 (free_era_info): New function to free era info.