Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362737 - Exception on dateTimeLib.dateFromJulian
Summary: Exception on dateTimeLib.dateFromJulian
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-02 19:14 EDT by broy2 CLA
Modified: 2017-02-23 14:18 EST (History)
0 users

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-02 19:14:29 EDT
Use EUNIT to run:

library dateFromJulian
    myDate date;
    myString string;
    i int = 19990201;
    function dateFromJulian(){@Test}
        i = 1981113;
        try
            myDate = dateTimeLib.dateFromJulian(i);
        onException(oops AnyException)
            LogResult.failed("Exception");
            exit;
        end
        myString = StringLib.format(myDate, "M/d/yy");
        LogResult.assertStringEqual("dateFromJulian", "4/23/81", myString);
    end
end

eglx.javascript.JavaScriptObjectException julianIntDate is not defined
Comment 1 broy2 CLA 2011-11-21 15:13:14 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 15:13:30 EST
Verified.