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

Bug 370017

Summary: Add support for the Time type
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: hjiyong, jeffdouglas, jspadea, jvincens, xiaobinc
Version: unspecifiedFlags: svihovec: review+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 370018, 370019    

Description Brian Svihovec CLA 2012-01-27 16:41:02 EST

    
Comment 1 Justin Spadea CLA 2012-04-13 15:52:06 EDT
Initial support has been added so that generation can get started on its part, but this item is (probably) not complete.
Comment 2 Justin Spadea CLA 2012-04-20 14:23:31 EDT
The final core changes have been released.
Comment 3 Huang Ji Yong CLA 2012-06-05 08:16:01 EDT
Jeff add these rules for time/date/timestamp and implemented them in both JavaGen & JSGen in 0.8.1 I2 and these 

1) when any string is assigned to a timestamp, the string MUST contains separator characters between each part of the timestamp. These sep characters are any non-digit, and do not have to match each other. However there cannot be a sep character at the very beginning, very end, or more than 1 immediately together.

these are valid examples:
ats timestamp = "2012-05-25 11:12:13";
ats timestamp = "2012/05/25-11:12:13";
ats timestamp = "2012-05-25 11-12-13";

these are INVALID examples:
ats timestamp = "2012-05-25 11:12:";
ats timestamp = "2012/05/25--11:12:13";
ats timestamp = "2012---05-25 11-12-13";
ats timestamp = "20120525111213";

2) when any string is assigned to a date, the string MUST contains separator characters between each part of the date. These sep characters are any non-digit, and do not have to match each other. However there cannot be a sep character at the very beginning, very end, or more than 1 immediately together.

these are valid examples:
ats date = "05/25/2012";
ats date = "05-25-2012";
ats date = "05-25/2012";

these are INVALID examples:
ats date = "05--25/2012";
ats date = "05-25/";
ats date = "05252012";

3) when any string is assigned to a time, the string MUST contains separator characters between each part of the time. These sep characters MUST BE a colon (:). However there cannot be a sep character at the very beginning, very end, or more than 1 immediately together.

these are valid examples:
ats time = "12:13:14";

these are INVALID examples:
ats time = "12-13-14";
ats time = "121314";


4) timestamp.extend, time.extend and date.extend must all pass a timestamp mask in the form yyyyMMddhhmmssffffff, or a subset of that, in that order. It cannot pass sep characters.