Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:33, 23 August 2007.

KIJ000181 - The Date object does not return the current time

From Forum Nokia Wiki


The Date object doesn't return the current time
KIJ000181
Overview
The Date object should return current time but it returns something like "java.util.Date@6b2251e9" instead.
Reported against
S60 1st Edition
Date identified
January 20, 2005
Symptoms
-
Detailed 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".
How to reproduce
-
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.
Related Discussions
Thread Thread Starter Forum Replies Last Post
mccsubthread error gammav VoIP 2 2008-07-06 15:04
How to get the date of a mobile aurelm Mobile Java General 4 2005-06-20 10:18
sending scheduled sms marwa mohamed Symbian Networking & Messaging 17 2007-04-27 16:47
Very strange TTime bug bjorn.rudolfsson General Symbian C++ 2 2004-01-13 15:10
Calendar in J2ME vs. J2SE dennisluemkemann Mobile Java General 0 2003-02-06 10:48
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX