Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Get time from iNet time server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Get time from iNet time server

 Post Reply Post Reply
Author
Darbs View Drop Down
Newbie
Newbie


Joined: 09 December 2005
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Darbs Quote  Post ReplyReply Direct Link To This Post Topic: Get time from iNet time server
    Posted: 17 January 2006 at 9:58pm
Anybody done any time server asp (or know of any that you can point me to?)......
 
I require some asp that will contact an internet time server (asp via http) and grab the time from it - I think it should be fairly simple!!
As part of this - a good reliable time server perhaps??  Hey VbScript will do for me!!
 
An atomic time server would be the best solution for what I have in mind if you can help please Big smile...
 
And please no ASP.NET, C# etc solutions cos I've got loads already LOL!!
 
Cheers,


Edited by Darbs - 18 January 2006 at 1:33am
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2006 at 2:37am
Don't think you can access an NTP service directly through ASP. Most NTP servers use port 37 so you'd need a component/DLL to access the port. Even if you could get it, you couldn't use it to update your system time through asp.

If you just want it for display purposes, you might use ServerXMLHTTP to hit a time service web page and then screenscrape the result. One such site is http://www.worldtimeserver.com/

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Darbs View Drop Down
Newbie
Newbie


Joined: 09 December 2005
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Darbs Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2006 at 9:56am
Thanks dpyers thats wat I want really - just to display.
I'm not sure how to grab the result from the xmlhttp if anybody knows????
Cheers,
Back to Top
Darbs View Drop Down
Newbie
Newbie


Joined: 09 December 2005
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Darbs Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2006 at 12:39pm
I've been sent some php script for this - anybody know how I can parse the php result and get it into an ASP variable?????
 
Cheers....
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2006 at 3:09am
ServerXMLHTTP just calls another page and returns the html in a string that you can then parse.
There's an example of how it works at http://www.new2asp.com/Section_Files/PullStrings/PullStrings.asp

Just out of curiosity, why do you want to get the time from a time server? Most windows hosts already synch with time.windows.com. Even my Win XP does. Can't you just use your hosts time?


Edited by dpyers - 19 January 2006 at 3:10am

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Darbs View Drop Down
Newbie
Newbie


Joined: 09 December 2005
Location: United Kingdom
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote Darbs Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2006 at 11:56am
It's a work arround to log accurate time into DB's where the time source is not accurate....  Old NT4 servers others that don't have a time source enabled....  Not the best thing to do but one of my only choices at the moment....
 
Cheers for the help dypers...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.