Über ComponentSpace Internet Time (NTP) Component

Rufen Sie Datum und Uhrzeit von Internet-Time-Servern ab.

ComponentSpace Internet Time (NTP) Component allows you to retrieve the date and time using the Network Time Protocol (RFC-1305), the Time Protocol (RFC-868) or the Daytime Protocol (RFC-867). Times are returned as standard System.DateTime objects. These can be easily converted from UTC to local time. Written in 100% managed C# code, the class library offers .NET developers easy access to Internet time-servers from within their applications. ComponentSpace Internet Time (NTP) Component is 64-bit, .NET Framework 4 and Visual Studio 2010 compatible.

ComponentSpace Internet Time Component may be used in any Windows or Web application by adding a reference to the assembly to access the classes in the KeyTech.InternetTime namespace. ComponentSpace Internet Time (NTP) Component is 64bit, .NET Framework 4 and VS2010 compatible.

The NetworkTimeClient class retrieves the date and time using the Network Time Protocol (NTP). You may retrieve the time either synchronously (blocking) using the GetTime method or asynchronously (non-blocking) using the BeginGetTime and EndGetTime methods. For asynchronous calls you may receive completion notification either through an event or a callback method. A timeout may be specified. The UTC date and time is returned as a System.DateTime object that easily may be converted to local time.

The TimeClient class retrieves the date and time using the Time Protocol. You may retrieve the time either synchronously (blocking) using the GetTime method or asynchronously (non-blocking) using the BeginGetTime and EndGetTime methods. For asynchronous calls you may receive completion notification either through an event or a callback method. A timeout may be specified. The UTC date and time is returned as a System.DateTime object that easily may be converted to local time.

The DaytimeClient class retrieves the date and time using the Daytime Protocol. You may retrieve the time either synchronously (blocking) using the GetTime method or asynchronously (non-blocking) using the BeginGetTime and EndGetTime methods. For asynchronous calls you may receive completion notification either through an event or a callback method. A timeout may be specified. The UTC date and time is returned as a string.

All classes that raise events support a SynchronizingObject property. All classes report errors through the InternetTimeException.

Main Features

  • Supports the Network Time Protocol (RFC-1305)
  • Supports the Time Protocol (RFC-868)
  • Supports the Daytime Protocol (RFC-867)
  • Receive the date and time as a System.DateTime object
  • Calling applications may make either synchronous or asynchronous calls
  • Asynchronous calls may either use events or callbacks
  • Specify a timeout
  • 100% managed code written in C#
  • Object oriented design specifically for the .NET framework
  • All error handling through .NET exceptions
  • Comprehensive Visual Studio .NET style documentation
  • VB.NET, C# and Web Service example source code
  • Includes prompt free email support
  • Royalty free runtime
  • Source code available

This class library may also be purchased as part of the Key Technology .NET Internet Suite.