MCPcopy Create free account
hub / github.com/HeyHeyChicken/No-Clock / getCurrentTime

Function getCurrentTime

public/js/script.js:828–838  ·  view source on GitHub ↗
(_showSeconds)

Source from the content-addressed store, hash-verified

826 },
827
828 getCurrentTime(_showSeconds) {
829 if (_showSeconds == undefined) {
830 _showSeconds = false;
831 }
832 const NOW = new Date();
833 let time = this.pad2(NOW.getHours()) + ":" + this.pad2(NOW.getMinutes());
834 if (_showSeconds) {
835 time += ":" + this.pad2(NOW.getSeconds());
836 }
837 return time;
838 },
839
840 writeTime(_x, _y, _showSeconds) {
841 if (_showSeconds == undefined) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected