Archived:The Date object does not return the current time on S60 1st Edition (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
The article is believed to be still valid for the original topic scope.
The article is believed to be still valid for the original topic scope.
Article Metadata
Compatibility
Platform(s): S60 1st Edition
Article
Created: User:Technical writer 1
(20 Jan 2005)
Last edited: hamishwillee
(28 Jun 2012)
Overview
The Date object should return current time but it returns something like "java.util.Date@6b2251e9" instead.
Description
The Date object should contain the current time but it contains something like "java.util.Date@6b2251e9" instead. Normally printing out the Date object should return something like "Fri Jan 14 16:04:22 GMT+02:00 2005".
Solution
You can ask a specific value from the Calendar object, for example like this: calendar.get(Calendar.HOUR_OF_DAY). This would return an integer showing the hour value of current time.
This is fixed in the newer S60 devices.


(no comments yet)