Home
last modified time | relevance | path

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

/third_party/jerryscript/tests/unit-core/
Dtest-date-helpers.c50 TEST_ASSERT (ecma_date_year_from_time (0) == 1970); in main()
51 TEST_ASSERT (ecma_date_year_from_time (0) == 1970); in main()
52 TEST_ASSERT (ecma_date_year_from_time (MS_PER_DAY) == 1970); in main()
53 TEST_ASSERT (ecma_date_year_from_time ((MS_PER_DAY) * (ecma_number_t) 365 - 1) == 1970); in main()
54 TEST_ASSERT (ecma_date_year_from_time (MS_PER_DAY * (ecma_number_t) 365) == 1971); in main()
55 TEST_ASSERT (ecma_date_year_from_time (MS_PER_DAY * (ecma_number_t) (365 * (2015 - 1970))) in main()
57 TEST_ASSERT (ecma_date_year_from_time (MS_PER_DAY * (ecma_number_t) (365.25 * (2015 - 1970))) in main()
59 TEST_ASSERT (ecma_date_year_from_time (-MS_PER_YEAR) == 1969); in main()
60 TEST_ASSERT (ecma_date_year_from_time (-1970 * MS_PER_YEAR) == 1); in main()
61 TEST_ASSERT (ecma_date_year_from_time (START_OF_GREGORIAN_CALENDAR) == 0); in main()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers-date.c128 ecma_date_year_from_time (ecma_number_t time) /**< time value */ in ecma_date_year_from_time() function
216 ecma_number_t year = ecma_date_year_from_time (time); in ecma_date_month_from_time()
260 ecma_number_t year = ecma_date_year_from_time (time); in ecma_date_date_from_time()
501 && ecma_date_year_from_time (time) == ym) in ecma_date_make_day()
619 number = (int32_t) ecma_date_year_from_time (datetime_number); in ecma_date_to_string_format()
637 number = (int32_t) ecma_date_year_from_time (datetime_number); in ecma_date_to_string_format()
Decma-builtin-date-prototype.c251 date_num = ecma_date_year_from_time (date_num); in ecma_builtin_date_prototype_dispatch_get()
434 ecma_number_t year = ecma_date_year_from_time (date_num); in ecma_builtin_date_prototype_dispatch_set()
Decma-builtin-helpers.h155 ecma_number_t ecma_date_year_from_time (ecma_number_t time);