Implement Date constructor.

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2015-07-06 12:28:26 +02:00
parent bf6fa9cfca
commit c12914c71a
3 changed files with 167 additions and 5 deletions
@@ -413,7 +413,12 @@ ecma_date_week_day (ecma_number_t time) /**< time value */
ecma_number_t __attr_always_inline___
ecma_date_local_tza ()
{
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
/*
* FIXME:
* Get the real system time. ex: localtime_r, gmtime_r, daylight on Linux
* Introduce system macros at first.
*/
return ECMA_NUMBER_ZERO;
} /* ecma_date_local_tza */
/**
@@ -432,7 +437,12 @@ ecma_date_daylight_saving_ta (ecma_number_t time) /**< time value */
return time; /* time is NaN */
}
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
/*
* FIXME:
* Get the real system time. ex: localtime_r, gmtime_r, daylight on Linux
* Introduce system macros at first.
*/
return ECMA_NUMBER_ZERO;
} /* ecma_date_daylight_saving_ta */
/**