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

Bug 364084

Summary: Milliseconds being dropped for timeStamp("yyyymmddhhmmssfff")
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jinfahua, jqian, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-11-17 15:43:52 EST
Use EUnit to run:

library milliseconds
    myString string;
    function testMilliseconds(){@Test}
        fTimeStamp timeStamp("yyyymmddhhmmssfff");
        fTimeStamp = "20041112134705123";
        myString = stringLib.format(fTimeStamp, Constants.db2TimeStampFormat);
        LogResult.assertStringEqual1("2004-11-12-13.47.05.123", myString);
    end
end

Following the assignment fTimeStamp = "20041112134705123";
fTimeStamp displays in debug variables as 2004-11-12 13:47:05.
It should display as 2004-11-12-13.47.05.123.

See bug 360890.
Comment 1 broy2 CLA 2011-11-21 16:57:59 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 16:58:12 EST
Verified.