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

Bug 362108

Summary: Need a way to calculate the timestamp difference
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Project Inbox <edt.language-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: carrollk, jspadea, mheitz, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jing Qian CLA 2011-10-26 13:15:34 EDT
in EDT 070, you can not compute timestamp1 - timestamp2 to get intervals of 2 timestamps.

- either ETimstamp need to add difference() function

- or we need conversion of timestamps into a bigint of milliseconds, so user can do math on it
Comment 1 Lisa Lasher CLA 2011-11-07 13:31:30 EST
This has been deferred to 1.0, as discussed in the 11/1 status meeting.
Comment 2 Matt Heitz CLA 2012-08-27 11:10:26 EDT
We also need this for the time type.
Comment 3 Justin Spadea CLA 2012-11-19 09:45:08 EST
In EDate we already have 'daysDifferent() returns(EInt)'

For ETime it would make sense to therefore have 'secondsDifferent() returns(EInt)'.

For ETimestamp do we want it to be 'millisecondsDifferent() returns(EBigint)'? You can calculate the seconds/minutes/hours/days different from that value.
Comment 4 Matt Heitz CLA 2013-01-03 14:43:30 EST
Setting the target milestone to Future for bugs that won't be addressed in 0.8.2.