ecma_date_day_from_time (ecma_number_t time) /**< time value */
{
  JERRY_ASSERT (!ecma_number_is_nan (time));

  if (time < 0)
  {
    time -= ECMA_DATE_MS_PER_DAY - 1;
  }

  return (int32_t) (time / ECMA_DATE_MS_PER_DAY);
} /* ecma_date_day_from_time */
ecma_date_day_from_time (ecma_number_t time)  
{
  JERRY_ASSERT (!ecma_number_is_nan (time));

  if (time < 0)
  {
    time -= ECMA_DATE_MS_PER_DAY - 1;
  }

  return (int32_t) (time / ECMA_DATE_MS_PER_DAY);
}  