Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363428

Summary: Unable to use timestamp functions yearOf, monthOf etc in Javascript
Product: z_Archived Reporter: Tom B <tmbarans>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: hjiyong
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix for time stamp APIs lasher: iplog+

Description Tom B CLA 2011-11-10 02:37:44 EST
Build Identifier: Eclipse 20110916-0149    EGL Development Tools (EDT)  0.7.0.v201111092101

Whenever a call is made to the timestamp functions yearOf, dayOf, monthOf, timeOf, dateOf, and weekdayOf, there is an exception with the message 'object doesn't support this property or method'

The same error also occurs when assigning a timestamp to a date e.g. myDate = myTimestamp, even when the timestamp represents a valid date

This error does not occur for Java generation

Reproducible: Always

Steps to Reproduce:
generate the following EGL to EDT Javascipt
const constTimeStampDateTime timeStamp("yyyyMMddHHmmss") = "20111231105530";
constTimeStampDateTime.dayOf()


When you run it, you will get an exception with the message 'object doesn't support this property or method'

see ETimestamp002-006.egl
Comment 1 Huang Ji Yong CLA 2011-11-10 07:19:33 EST
Created attachment 206782 [details]
Fix for time stamp APIs
Comment 2 Huang Ji Yong CLA 2011-11-10 07:22:29 EST
Add the APIs to edt_runtime
Comment 3 Lisa Lasher CLA 2011-11-11 18:09:14 EST
closing the defect