All Projects → Yortw → Yort.Ntp

Yortw / Yort.Ntp

Licence: MIT License
A cross platform NTP client library for .Net platforms. Allows you to easily retrieve an accurate, current date & time from internet NTP servers.

Programming Languages

C#
18002 projects
smalltalk
420 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to Yort.Ntp

NTP
NTP library for Arduino framework
Stars: ✭ 20 (-42.86%)
Mutual labels:  time, ntp, ntp-client
easy-admin
Scripts for easy system administration
Stars: ✭ 20 (-42.86%)
Mutual labels:  ntp, ntp-client
ESPNtpClient
High accuracy NTP library for ESP32 and ESP8266
Stars: ✭ 81 (+131.43%)
Mutual labels:  time, ntp
akka-mock-scheduler
A mock Akka scheduler to simplify testing scheduler-dependent code
Stars: ✭ 86 (+145.71%)
Mutual labels:  time
rescript-date
📆 Date manipulation in ReScript.
Stars: ✭ 101 (+188.57%)
Mutual labels:  time
tm
timers and timeline
Stars: ✭ 31 (-11.43%)
Mutual labels:  time
MD DS3231
DS3231 Real Time Clock Library
Stars: ✭ 29 (-17.14%)
Mutual labels:  time
timezones
Nim timezone library compatible with the standard library.
Stars: ✭ 37 (+5.71%)
Mutual labels:  time
kick-off-web-scraping-python-selenium-beautifulsoup
A tutorial-based introduction to web scraping with Python.
Stars: ✭ 18 (-48.57%)
Mutual labels:  time
TASNET
Time-domain Audio Separation Network (IN PYTORCH)
Stars: ✭ 18 (-48.57%)
Mutual labels:  time
hast-util-reading-time
utility to estimate the reading time
Stars: ✭ 55 (+57.14%)
Mutual labels:  time
timezz
With this plugin, you can easily make a stopwatch or timer on your site. Just init, style and enjoy.
Stars: ✭ 35 (+0%)
Mutual labels:  time
canon-generator
Create and visualize temporal canons a'la Conlon Nancarrow
Stars: ✭ 31 (-11.43%)
Mutual labels:  time
Shell-Scripts
Shell scripts about some basic topics, current time, calculator, sorting, restaurant and more.
Stars: ✭ 100 (+185.71%)
Mutual labels:  time
time-api
Nodejs API for Wobbly Time Tracker for the Teams
Stars: ✭ 24 (-31.43%)
Mutual labels:  time
meta-theme-sky-color
Js snippet that changes the mobile Chrome nav bar color to the color of the sky based on time of day.
Stars: ✭ 19 (-45.71%)
Mutual labels:  time
cftime
Time-handling functionality from netcdf4-python.
Stars: ✭ 53 (+51.43%)
Mutual labels:  time
react-time-ago
Localized relative date/time formatting in React
Stars: ✭ 88 (+151.43%)
Mutual labels:  time
ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (-14.29%)
Mutual labels:  time
react-picky-date-time
A react component for date time picker. Online demo examples
Stars: ✭ 41 (+17.14%)
Mutual labels:  time

Yort.Ntp.Portable

A cross platform NTP client library for .Net platforms. Allows you to easily retrieve an accurate, current date & time from internet NTP servers.

GitHub license

Supported Platforms

Currently;

  • .Net Framework 4.0+
  • .Net Framework 4.5+ **
  • Windows Phone Silverlight (8.1+)
  • Xamarin.iOS **
  • Xamarin.Android **
  • WinRT (Windows Store Apps 8.1) **
  • UWP 10+ (Windows 10 Universal Programs) **
  • .Net Standard 1.3

** Supports async/await

Build Status

Build status

Available on Nuget

    PM> Install-Package Yort.Ntp.Portable

NuGet Badge

Samples

For platforms that support task based async;

var client = new Yort.Ntp.NtpClient();
var currentTime = await client.RequestTimeAsync();

For platforms that do not support async/await or tasks (or if you don't want to use async/await);

var client = new Yort.Ntp.NtpClient();
client.TimeReceived += Client_TimeReceived;
client.ErrorOccurred += Client_ErrorOccurred;
client.BeginRequestTime();

private void Client_ErrorOccurred(object sender, NtpNetworkErrorEventArgs e)
{
	//TODO: Handle errors here.
}

private void Client_TimeReceived(object sender, NtpTimeReceivedEventArgs e)
{
    //TODO: Use retrieved time here. Time is provided by e.CurrentTime.
	System.Diagnostics.Debug.WriteLine(e.CurrentTime);
}

Attributions

The icon for this project is Computer Time by Arthur Shlain from the Noun Project and is used under the Creative Commons License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].