Home
last modified time | relevance | path

Searched refs:week_num (Results 1 – 6 of 6) sorted by relevance

/third_party/musl/porting/liteos_a/kernel/src/time/
Dstrftime.c19 static int week_num(const struct tm *tm) in week_num() function
90 if (tm->tm_yday < 3 && week_num(tm) != 1) val--; in __strftime_fmt_1()
91 else if (tm->tm_yday > 360 && week_num(tm) == 1) val++; in __strftime_fmt_1()
149 val = week_num(tm); in __strftime_fmt_1()
/third_party/musl/porting/liteos_m/kernel/src/time/
Dstrftime.c19 static int week_num(const struct tm *tm) in week_num() function
90 if (tm->tm_yday < 3 && week_num(tm) != 1) val--; in __strftime_fmt_1()
91 else if (tm->tm_yday > 360 && week_num(tm) == 1) val++; in __strftime_fmt_1()
149 val = week_num(tm); in __strftime_fmt_1()
/third_party/musl/src/time/
Dstrftime.c19 static int week_num(const struct tm *tm) in week_num() function
90 if (tm->tm_yday < 3 && week_num(tm) != 1) val--; in __strftime_fmt_1()
91 else if (tm->tm_yday > 360 && week_num(tm) == 1) val++; in __strftime_fmt_1()
149 val = week_num(tm); in __strftime_fmt_1()
/third_party/musl/porting/uniproton/kernel/src/time/
Dstrftime.c19 static int week_num(const struct tm *tm) in week_num() function
90 if (tm->tm_yday < 3 && week_num(tm) != 1) val--; in __strftime_fmt_1()
91 else if (tm->tm_yday > 360 && week_num(tm) == 1) val++; in __strftime_fmt_1()
149 val = week_num(tm); in __strftime_fmt_1()
/third_party/musl/porting/linux/user/src/time/
Dstrftime.c47 static int week_num(const struct tm *tm) in week_num() function
122 if (tm->tm_yday < __DAY_LAST_WEEK2__ && week_num(tm) != 1) { in __strftime_fmt_1()
124 } else if (tm->tm_yday > __DAYS_IN_YEAR__ && week_num(tm) == 1) { in __strftime_fmt_1()
206 val = week_num(tm); in __strftime_fmt_1()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format.cc659 bool FromWeek(int week_num, weekday week_start, year_t* year, std::tm* tm) { in FromWeek() argument
662 cd = next_weekday(cd - 1, FromTmWday(tm->tm_wday)) + (week_num * 7); in FromWeek()
725 int week_num = -1; in parse() local
765 week_num = -1; in parse()
770 week_num = -1; in parse()
773 data = ParseInt(data, 0, 0, 53, &week_num); in parse()
777 data = ParseInt(data, 0, 0, 53, &week_num); in parse()
977 if (week_num != -1) { in parse()
978 if (!FromWeek(week_num, week_start, &year, &tm)) { in parse()