Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370017 - Add support for the Time type
Summary: Add support for the Time type
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 370018 370019
  Show dependency tree
 
Reported: 2012-01-27 16:41 EST by Brian Svihovec CLA
Modified: 2017-02-23 14:21 EST (History)
5 users (show)

See Also:
svihovec: review+


Attachments

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