Last active
January 13, 2020 11:52
-
-
Save rozek/07fec0045a4357787babec55cc3fec01 to your computer and use it in GitHub Desktop.
Bangle.js: retrieves the currently configured standard clock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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