Provide alternative methods to Sakai Time object

Description

Currently the sui generis Sakai Time interface is deprecated as java.util.Date should rather be used. However many sakai objects offer no alternatives as they return Time objects.

The api's shoudl offer an alternative method that returns a Date with the origional time one marked as deprecated. On can convert from a Time to date as:

Time m_lastModifiedTime ...
new Date(m_lastModifiedTime.getTime()

and

Time mytime = timeService().newTime(new Date().getTime());

Environment

None

Test Plan

None
100% Done
Loading...

Activity

Show:

Seth Theriault August 16, 2010 at 5:13 PM

I think might be fixed by this.

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created August 13, 2010 at 4:18 AM
Updated April 25, 2018 at 3:34 PM