ComponentSpace Internet Time (NTP) Component について

インターネットのタイムサーバーから日付と時刻を取得

ComponentSpace Internet Time (NTP) Component は、Network Time Protocol(RFC - 1305)、Time Protocol(RFC - 868)またはDaytime Protocol(RFC - 867)を使用して日付と時刻を取得することができます。 タイムズは、標準のSystem.DateTimeオブジェクトとして返されます。 これらは簡単にUTCから現地時刻に変換することができます。 100%C#のマネージコードで記述された、クラスライブラリが提供しています。NET開発者に簡単にアクセスをインターネットタイムサーバにそれぞれのアプリケーション内から。 ComponentSpace Internet Time (NTP)コンポーネントは、64ビット、NET Framework 4及びVisual Studio 2010をサポートします。

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.