Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
10-09-2013 11:16 AM - last edited on 10-09-2013 11:55 AM by Chronos
i'm in front of my next problem, want to edit the timeformat as is should say how many time since the last update past,
i mean instead of 2013-10-08T17:27:59.745Z 1 if the lastUpdate was yesterday, 2 for the day before yesterday and so on.
that means that i have to compare it to the current date but i dont know how i can get access to the lastUpdate Variant in my Map.
QMap(("weather", QVariant(QVariantList, (QVariant(QVariantMap, QMap(("citydocid", QVariant(QString, "") ) ( "id" , QVariant(qlonglong, 94) ) ( "city" , QVariant(QString, "test") ) ( "lastUpdate" , QVariant(QString, "2013-1008T17:23:39.154Z") ) ) ) ) )
Hope you can help me again.
thanks in advance
Subject Title edited to reflect new topic.
10-09-2013 11:39 AM - last edited on 10-09-2013 12:12 PM by Chronos
One problem per thread please, please post your new problem as a new thread.
[Edit] If you click on the link 'Report inappropriate content' next to the message above you can then ask a moderator to split the thread for you. This is a better way to do it to avoid replication.
[Edit 2] Please don't open a new thread as I've asked the moderator to split the thread.
10-09-2013 11:43 AM - last edited on 10-09-2013 12:12 PM by Chronos
10-09-2013 11:53 AM - last edited on 10-09-2013 12:12 PM by Chronos
Yes so as per my earlier suggestion I recommend converting it to a QDateTime and then you can use the functions within that to help you...
10-09-2013 11:55 AM - last edited on 10-09-2013 12:12 PM by Chronos
Before @Zmey chips in with it you can also use QML's date object...
Personally I prefer to work with QDateTime it's more extensive.
10-09-2013 12:16 PM