Home
last modified time | relevance | path

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

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers-date.c223 int day_within_year = (int) (ecma_date_day (time) - ecma_date_day_from_year (year)); in ecma_date_month_from_time() local
225 JERRY_ASSERT (day_within_year >= 0); in ecma_date_month_from_time()
227 if (day_within_year <= 30) in ecma_date_month_from_time()
232 day_within_year -= ecma_date_in_leap_year (year); in ecma_date_month_from_time()
234 JERRY_ASSERT (day_within_year < 365); in ecma_date_month_from_time()
238 if (day_within_year <= ecma_date_month_end_day[i]) in ecma_date_month_from_time()
267 int day_within_year = (int) (ecma_date_day (time) - ecma_date_day_from_year (year)); in ecma_date_date_from_time() local
269 JERRY_ASSERT (day_within_year >= 0); in ecma_date_date_from_time()
271 if (day_within_year <= 30) in ecma_date_date_from_time()
273 return day_within_year + 1; in ecma_date_date_from_time()
[all …]