| Reply | « Previous Thread | Next Thread » |
|
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. |
|
Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 |
|
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. |
|
Quote:
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? |
Thank you! my time here is "UTC+8" . |
|
time.localtime() should give you the time. What time are you getting? Maybe your phone's time settings are messed up, somehow.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |