03-05-2010 04:50 PM
I have tried the following code which can't work on a BB:
//ar s ti info = System.Tie.get.localime(System.Time.curentTieZone)
... this can't work inside the widget because "System" doesn't exists.
I saw there was a very long thread for the Java developers where they finally got it down to 8 or 10 lines of code getting the raw system time in miliseconds then getting the GMT offsed from the calendar then reformatting it to show the correct time....
ahem... in the widget environment I don't beleive we have very limited ability to access the system object from blackberry.system, and we can invoke, but not query the the calendar object (I think)... any suggestions?
sure would be nice if there was just a now() function.
Solved! Go to Solution.
03-05-2010 05:13 PM
var now = new Date();
That should get the current date and time down to the millisecond with the GMT offset