BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-23-2009, 06:58 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8300
PIN: N/A
Carrier: developer
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up How to show clock in bb application

Please Login to Remove!

Hi Guys.
I am new to this fourm.please help me out to resolve my bb issue.
I am using Blackberry JDE4.2 for building my application. Is there any API available to get current time in JDE 4.2
I am developing Blackberry native application.Please advise on this.

Thanks in advance.
Offline  
Old 11-23-2009, 07:49 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2009
Model: 8300
PIN: N/A
Carrier: developer
Posts: 37
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think there in no API to getCurrentTime in JDE4.2...
go for some other higher version JDE..
Offline  
Old 11-23-2009, 08:58 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The current time is available using System.currentTimeMillis()

(the number of milliseconds since 1/1/1970, GMT)

You then use this value to create a date object:

dt = new Date(System.currentTimeMillis())
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Vintage Working Pelouze Model Y-5 Postal Scale Up To 7 Lb. Dec 31, 1975
$18.95
Vintage Working Pelouze Model Y-5 Postal Scale Up To  7 Lb. Dec 31, 1975   pictureWilton bullet machinist gunsmith vise vintage 930. 3" jaws 12" long. Dec 1946
$280.0
Wilton bullet machinist gunsmith vise vintage 930. 3Vtg Chemistry Science Lab Beaker Stand Test Tube Bracket Clamp Industrial Dec
$15.0
Vtg Chemistry Science Lab Beaker Stand Test Tube Bracket Clamp Industrial Dec  pictureVintage Brass Printing Galley Tray, American Dec. 6, 1904
$9.99
Vintage Brass Printing Galley Tray, American Dec. 6, 1904 pictureHSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR,BIKES, JEEP
$229.0
HSS 21PCS VALVE SEAT & FACE CUTTER 45DEC 30DEC 20DEC FOR VINTAGE CAR,BIKES, JEEP picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.