Get Date & Time from the web

How to get Date & Time from the web
 
Overview: If a database contains data items for the date and time of generation of a record it is important to have all workstations and the server of a LAN/WAN network to be synchronized in respect to date & time. Additionally, it may be important for an application to get the actual Date & Time from the web without a change to the computer’s settings.
 
There are three different mecahnisms to be looked at:
 
1 - if exact date / time is not important
If you don’t need synchronization by the millisecond, a simple HTTP-Request to the web site of a big company may be sufficient! The returned Header information contains date & time! The trick is to retrieve date & time information from the header.
 
Download of a WinDev 14 demo project: GetDateTimeByHTTP.zip
 
 
Info on NTP / SNTP and available Time Servers:
 
2 - if servers / computers have to be synchronized by NTP
Windows and Linux computers have on-board-tools for synchronizing with a ‘Time Server’. Such Time Servers can be run within the network itself or Time (usually the number of seconds elapsed since 01-01-1900) can be retrieved from one of the numerous official time servers which are available on the web. Microsoft Windows comes with W32TM.EXE or the NET TIME command (older versions). In order to make them work, one or more time servers have to be set in the Windows Registry and then the NTP client has to be started. It will retrieve time in a definable interval and will set the computer’s internal clock.
 
 
3 - getting NTP/SNTP date & time without setting computer’s date/time settings
 
 
LINKS to relevant products / information / sites
W32TM is the Windows Time Service Tool
http://technet.microsoft.com/en-us/library/cc773263(WS.10).aspx#w2k3tr_times_tools_dyax
 
YATS32 - a Computer Clock Synchronizer (19,- US$)
http://www.dillobits.com/yats32.html#1pb3wAQvvzsf
 
 

 

BuiltWithNOF
[Home] [English] [WX Links] [Deutsch] [Impressum] [Downloads] [RADTranslate] [Upper] [NullValues] [TableOnStructure] [HFClassicHFSQL] [RAD11] [USBFind] [Color Contrast] [Dec. Separator] [Setup Problems] [Directories] [Help Authoring] [Access CHM] [Make GUID] [HOpen Files] [Reset Table] [Int. Gen. Number] [TAB-Control] [fDataDir.. commands] [Calendar Weeks] [Input & check EAN 8/13] [Test_for_Dups] [Feiertage] [MemStick as Dongle] [Get Date & Time] [German phone book]