A JavaScript helper which synchronizes the client date with a server date (provided by realworldtime api). Can be used either in browser (client-side) or in Node.js (server-side) environment. Available as a UMD module.
<!doctype html>
<html>
<head>
<script src="sdate.min.js"></script>
<script>
console.log(sdate.getDate());
</script>
</head>
<body>
</body>
</html>
$ npm install sdate
const sdate = require('sdate');
console.log(sdate.getDate());
- Finish documentation
- Add 100% test coverage
- TODOs in code