@saxnpaule Yes, this will be great. As said earlier I think moment.js is a good starting point as it should serve all need even though it appears to have some bugs, at least, “day of week” did not work for me as expected (see code below, may be I am missing a package?!). However, there are also some alternative libraries out there which may better serve the specific needs.
I think updating the values every two or five seconds should be enough. Because of that, providing the current seconds doesn’t make sense.
Yes, but I think the update cycle timer should be configurable.
var moment = require('moment-timezone');
moment.locale('de');
console.log(moment().format('LLLL'));
console.log(moment().format());
console.log(moment().tz("Europe/Berlin").format('LLLL'));
console.log(moment().weekday());
moment.locale('en-AU');
console.log(moment().weekday());
moment.locale('vi-VT');
console.log(moment().tz("Asia/Ho_Chi_Minh").format('LLLL'));
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law