Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362108 - Need a way to calculate the timestamp difference
Summary: Need a way to calculate the timestamp difference
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 13:15 EDT by Jing Qian CLA
Modified: 2017-02-23 14:18 EST (History)
4 users (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-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.