New topic: Set PC Time via code
<http://forums.realsoftware.com/viewtopic.php?t=38359> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message asawyer13 Post subject: Set PC Time via codePosted: Mon Mar 28, 2011 8:33 am Joined: Sat Aug 04, 2007 11:41 am Posts: 190 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 asawyer13 Post subject: Re: Set PC Time via codePosted: Mon Mar 28, 2011 8:39 am Joined: Sat Aug 04, 2007 11:41 am Posts: 190 Clarification. I want to set it via the internet, not a local network. Alan Top npalardy Post subject: Re: Set PC Time via codePosted: Mon Mar 28, 2011 8:47 am Joined: Sat Dec 24, 2005 8:18 pm Posts: 6511 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 _________________ My web site Great White Software RBLibrary.com REALbasic learning Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
