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

Bug 357553

Summary: can NOT get current timestamp
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jing Qian CLA 2011-09-13 16:00:53 EDT
Run the following program, you will get egl.lang.TypeCastException

package a;

// basic program
//
program timeProgram type BasicProgram {}

	function main()
		getTimeStamp();
	end
	
	function getTimeStamp() returns (String)
		currentTime String;
		
		format String = "yyyyMMdd_HHmmss";
		myTime TimeStamp;
		currentTime = strLib.formatTimestamp(myTime, format);				
				
		SysLib.writeStdOut ("c: "+ currentTime);
		return (currentTime);
	end	
end
Comment 1 Jeff Douglas CLA 2011-09-13 17:33:53 EDT
fixed
Comment 2 Jing Qian CLA 2011-10-14 15:03:39 EDT
verified & close
20111009's build