Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help on getting system timer and Time system
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
thoughtful




PostPosted: Sun Sep 28, 2003 12:19 am   Post subject: Help on getting system timer and Time system

i was wondering if there is a command to get the current time and time zone of the computer where the program is run.

i will appreciate your help.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Sep 28, 2003 12:42 am   Post subject: (No subject)

you can get system time by using
code:

var t:int
wallclock(t)
put t


it returns an int value that equals to the number of seconds passed since January 1st, 1970 (using system's clock)

You can't detect time zone using turing, but you could ask something like "what time is it now in england" and figure it out from there.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
thoughtful




PostPosted: Sun Sep 28, 2003 12:51 am   Post subject: (No subject)

thanx for the fast reply, appreciate it.
i think this will be wuite helpful
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: