You Are Here:

Community: Developer Discussion Boards

#1 Old How can I get my phone's time?help! - 2008-12-13, 08:22

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
hi,
I mean the system time ,not local time or other.if you can show me a code for a alarm clock ,it will be OK.
Reply With Quote

#2 Old Re: How can I get my phone's time?help! - 2008-12-13, 09:09

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by xiaobu View Post
hi,
I mean the system time ,not local time or other.if you can show me a code for a alarm clock ,it will be OK.
Hello
Please do a search at the wiki i guess ther is sample code for pys60 alarm clock.

Best regards
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: How can I get my phone's time?help! - 2008-12-13, 12:16

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
See the Python 2.2.2 documentation for the time module. There's tons of time-related functions.

What do you mean by "system time"? Most operating systems keep track of time in Coordinated Universal Time (UTC), also sometimes called the Greenwich Mean Time (GMT). This is the time you get from calling time.time(). You can then convert it to local time with various functions in the time module.
Reply With Quote

#4 Old Re: How can I get my phone's time?help! - 2008-12-13, 12:25

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
Quote:
Originally Posted by jethro.fn View Post
See the Python 2.2.2 documentation for the time module. There's tons of time-related functions.

What do you mean by "system time"? Most operating systems keep track of time in Coordinated Universal Time (UTC), also sometimes called the Greenwich Mean Time (GMT). This is the time you get from calling time.time(). You can then convert it to local time with various functions in the time module.

i mean if my phone's current time, 19:19 for example,and the time.timelocal() is not the exact time here!
how i can get it?
Reply With Quote

#5 Old Re: How can I get my phone's time?help! - 2008-12-13, 12:58

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
Thank you! my time here is "UTC+8" .
Reply With Quote

#6 Old Re: How can I get my phone's time?help! - 2008-12-13, 15:40

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Quote:
Originally Posted by xiaobu View Post
i mean if my phone's current time, 19:19 for example,and the time.timelocal() is not the exact time here!
how i can get it?
time.localtime() should give you the time. What time are you getting? Maybe your phone's time settings are messed up, somehow.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Any vendor specific AT commands for Nokia phones jasthy PC Suite API and PC Connectivity SDK 1 2006-12-07 11:08
vCard message through a SMS message to various Nokia phones makippola Smart Messaging 2 2006-04-21 10:32
Connecting Multiple Phones to 1 PC unwantedmails General Discussion 0 2004-01-04 13:00

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia