More .NET components
// synchronize over NTP protocol

// synchronize over TIME protocol

// synchronize over DAYTIME protocol
Show me more code...
SNTP and NTP protocols enable your program to get the exact time from public time servers over the Internet. Keep all computers in your multi-tier application synchronized with atomic clock to get rid of problems with different local time.

Why Rebex Time

Get the exact time from an atomic clock

Time for .NET is a powerful and easy-to-use component for C#, VB.NET and other .NET languages. It implements the client side of SNTP, NTP, TIME and DAYTIME protocols that enable your .NET applications to get exact time from public time servers over the Internet. This makes it easy to keep all the computers running your application synchronized with an atomic clock to eliminate problems caused by mismatched system time, or to get the exact time value for your time-critical database entries. Determining the right time has never been easier.

Synchronize with a time server in a single line of code

It is easy getting started with Rebex Time for .NET. The most common operation - synchronizing the local system time with a time server - only takes a single line of code.

Advanced SNTP and NTP functionality

Rebex Time for .NET supports SNTP and NTP versions 3 and 4. With few lines of code, you can determine the time difference between the local system and remote time server, set the local system clock to a desired value, determine the time server stratum or access additional NTP packet fields.

Other features

  • Easy-to-use with maximum flexibility.
  • 100% managed code.
  • Complete C# source code optionally available.
  • Free one-year support.
  • Free one-year upgrades.
  • Royalty-free redistribution.
  • CLS (Common Language Specification) compliant.
  • Stable and thoroughly tested code.
  • Works with both SNTP and NTP servers, versions 3 and 4.
  • Support TIME and DAYTIME protocols.
  • Fully compliant with RFC 2030 (SNTP).
  • Fully compliant with RFC 867 (DAYTIME).
  • Fully compliant with RFC 868 (TIME).
  • Provides access to all NTP packet fields.
  • Support for asynchronous operations via .NET 4.x-style task-based API and IAsyncResult pattern.
  • Conversions between NTP datetime and .NET DateTime.
  • Uniform and comprehensive error handling with .NET exceptions.
  • Extensive tutorials.
  • Samples in both C# and VB.NET with different levels of complexity.

Platform support

  • .NET Framework
    2.0, 3.0, 3.5. 4.0, 4.5.x, 4.6; both 32-bit and 64-bit editions on Windows XP or later; Visual Studio 2005, 2008, 2010, 2012, 2013, 2015
  • .NET Compact Framework
    2.0, 3.5, 3.9 on Windows Mobile, Windows CE, Pocket PC, PDAs and Smartphones, Windows Embedded Compact 2013; Visual Studio 2005, 2008, 2012, 2013
  • Mono
    2.10, 3.x, 4.x on Linux and Apple's OS X
  • Xamarin.iOS
    Xamarin.iOS 8.6 or later; Xamarin Studio
  • Xamarin.Android
    Xamarin.Android 4 or later; Xamarin Studio

Experimental support for various Windows Store Apps platforms including Windows 8 or later, Windows Phone 8.1 or later, Portable Class Libraries and Universal Windows Platform.

Experimental support for Xamarin.Mac platform. The same assemblies work for "Xamarin.Mac Mobile" and "Xamarin.Mac .NET 4.5 Framework" projects.

Licensing and support

  • Royalty free redistribution.
  • Includes 1 year support contract.
  • Includes all new versions released during 1 year.


WinForms samples

  • Windows Forms Time
    Windows Forms Time application demonstrates how to work with a time server.

Simple commandline utilities

  • Synchronize
    The sample asks a time server for time difference and uses the answer to update time on the local machine.
  • SimpleSync using NTP/SNTP protocol
    Synchronize time between local machine and the time server in one line of code using NTP/SNTP protocol.
  • TimeGetter
    Demonstrates how to connect to the server, get time and NTP/SNTP server info including stratum.
  • SimpleSync using Time protocol
    Synchronize time between local machine and the time server in one line of code using Time protocol.
  • SimpleSync using Daytime protocol
    Synchronize time between local machine and the time server in one line of code using Daytime protocol.
  • TimeDifference
    Shows the time difference between NTP server and local machine.

Xamarin.Android samples

Xamarin.iOS samples

Pocket PC and Windows CE Applications

What next?