Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363428 - Unable to use timestamp functions yearOf, monthOf etc in Javascript
Summary: Unable to use timestamp functions yearOf, monthOf etc in Javascript
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 02:37 EST by Tom B CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments
Fix for time stamp APIs (19.58 KB, patch)
2011-11-10 07:19 EST, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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