Skip to content

Instantly share code, notes, and snippets.

@rozek
Last active January 13, 2020 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rozek/07fec0045a4357787babec55cc3fec01 to your computer and use it in GitHub Desktop.
Save rozek/07fec0045a4357787babec55cc3fec01 to your computer and use it in GitHub Desktop.
Bangle.js: retrieves the currently configured standard clock
const Storage = require('Storage');
let StdClock;
try {
StdClock = Storage.readJSON('@setting')['clock'];
} catch (Signal) { /* nop */ }
if (StdClock) {
print('currently configured standard clock: "' + StdClock.slice(1) + '"');
} else {
print('no standard clock configured');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment