Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 1:48 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Set PC Time via code
PostPosted: Mon Mar 28, 2011 8:33 am 
Offline

Joined: Sat Aug 04, 2007 11:41 am
Posts: 212
Is there a way to set the computer time on the pc running my software automatically? I need the pc time to be accurate so I want to have a way to autoupdate it.

Alan


Top
 Profile  
Reply with quote  
 Post subject: Re: Set PC Time via code
PostPosted: Mon Mar 28, 2011 8:39 am 
Offline

Joined: Sat Aug 04, 2007 11:41 am
Posts: 212
Clarification.
I want to set it via the internet, not a local network.
Alan


Top
 Profile  
Reply with quote  
 Post subject: Re: Set PC Time via code
PostPosted: Mon Mar 28, 2011 8:47 am 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
You'll want to use a TCP Socket subclass & implement NTP (network time protocol)

About the biggest thing you'll run into is having sufficient privileges to set the clock.

But I'm sure there's an API for this on all systems

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group