Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357553 - can NOT get current timestamp
Summary: can NOT get current timestamp
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 16:00 EDT by Jing Qian CLA
Modified: 2017-02-23 14:16 EST (History)
1 user (show)

See Also:


Attachments

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