×
Namespaces

Variants
Actions
Revision as of 08:33, 24 October 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:The Date object does not return the current time on S60 1st Edition (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: 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.

Article Metadata
Compatibility
Platform(s):
S60 1st Edition
Article
Created: User:Technical writer 1 (20 Jan 2005)
Last edited: hamishwillee (24 Oct 2013)

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.

This page was last modified on 24 October 2013, at 08:33.
57 page views in the last 30 days.