Namespaces
Variants
Actions

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

Jump to: navigation, search
Archived.png
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.


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.

This page was last modified on 28 June 2012, at 07:50.
156 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved