All Projects → NodeGuy → Server Date

NodeGuy / Server Date

Licence: mpl-2.0
Make the server's clock available in the browser.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Server Date

Timestamp
⏰ A better macOS menu bar clock.
Stars: ✭ 296 (+88.54%)
Mutual labels:  date, clock
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (+73.25%)
Mutual labels:  date, clock
ElevenClock
ElevenClock: Customize Windows 11 taskbar clock
Stars: ✭ 1,494 (+851.59%)
Mutual labels:  date, clock
Klock
Multiplatform Date and time library for Kotlin
Stars: ✭ 569 (+262.42%)
Mutual labels:  date, clock
Crossbar
Crossbar.io - WAMP application router
Stars: ✭ 1,957 (+1146.5%)
Mutual labels:  server
Servermonitor
💓 Laravel package to periodically monitor the health of your server and application.
Stars: ✭ 148 (-5.73%)
Mutual labels:  server
Carettab
CaretTab - New Tab Page Replacement
Stars: ✭ 147 (-6.37%)
Mutual labels:  clock
Ether.network
https://github.com/Eastrall/Sylver
Stars: ✭ 147 (-6.37%)
Mutual labels:  server
Gophertunnel
Toolbox for Minecraft software written in Go
Stars: ✭ 156 (-0.64%)
Mutual labels:  server
Dart Basic Utils
A dart package for many helper methods fitting common situations
Stars: ✭ 153 (-2.55%)
Mutual labels:  date
Nodemon Webpack Plugin
A webpack plugin that uses Nodemon to start and reload the server.
Stars: ✭ 150 (-4.46%)
Mutual labels:  server
Carmelo
Carmelo is a fast, scalable Java server framework designed for online games. It uses Netty and Fastjson for highly efficient network transmission and supports both TCP/HTTP protocols.
Stars: ✭ 148 (-5.73%)
Mutual labels:  server
Rolisteam
Rolisteam is a virtual tabletop. It helps you to manage tabletop role playing games with remote friends/players. It provides many features to share maps, pictures, dice roller, manage background music and much more. The main git repository is available here: [https://invent.kde.org/kde/rolisteam].
Stars: ✭ 151 (-3.82%)
Mutual labels:  server
Gostradamus
Gostradamus: Better DateTimes for Go 🕰️
Stars: ✭ 148 (-5.73%)
Mutual labels:  date
Teseve
A simple static webserver, in an app.
Stars: ✭ 155 (-1.27%)
Mutual labels:  server
Hads
📚 Markdown superpowered documentation for Node.js
Stars: ✭ 147 (-6.37%)
Mutual labels:  server
Dragonfly
Minecraft (Bedrock Edition) server software written in Go
Stars: ✭ 148 (-5.73%)
Mutual labels:  server
Titiler
A dynamic Web Map tile server
Stars: ✭ 153 (-2.55%)
Mutual labels:  server
React Clock
An analog clock for your React app.
Stars: ✭ 149 (-5.1%)
Mutual labels:  clock
Openmicroscopy
OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.
Stars: ✭ 148 (-5.73%)
Mutual labels:  server

Changes

This version has been rewritten and breaks compatibility with the previous API.

Introduction

server-date makes the server's clock available to the client's web browser in JavaScript.

You can use it when you want to display the current time but don't trust the browser's clock to be accurate or to synchronize events for different users of your web site by syncing them all to the server's clock.

serverDate.js, gets the time from the server on which the library is hosted by reading the Date HTTP response header. You don't need to make any changes on the server if you use this version but its precision is limited to seconds because that's what's available in the header.

Usage

import { getServerDate } from "./serverDate.js";

const { date, offset, uncertainty } = await getServerDate();

console.log(`The server's date is ${date} +/- ${uncertainty} milliseconds.`);

// some time in the future

const serverDate = new Date(Date.now() + offset);

See example.html for a complete example.

References

Copyright

Copyright 2012 David Braun

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].