Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364084 - Milliseconds being dropped for timeStamp("yyyymmddhhmmssfff")
Summary: Milliseconds being dropped for timeStamp("yyyymmddhhmmssfff")
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 15:43 EST by broy2 CLA
Modified: 2017-02-23 14:18 EST (History)
3 users (show)

See Also:


Attachments

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