aboutsummaryrefslogtreecommitdiff
path: root/demo/src/format-time.ts
diff options
context:
space:
mode:
authorUri Shaked2025-02-11 11:01:48 +0200
committerUri Shaked2025-02-11 11:01:48 +0200
commit1378808fa3befb80582e1836705e472755505b73 (patch)
treecdc39d81d7958a6f155bcf0fd02e903d64bf9e08 /demo/src/format-time.ts
parenttest(timer): fix typo #160 (diff)
downloadavr8js-1378808fa3befb80582e1836705e472755505b73.tar.gz
avr8js-1378808fa3befb80582e1836705e472755505b73.tar.bz2
avr8js-1378808fa3befb80582e1836705e472755505b73.zip
docs: add copyright notice to source code
Diffstat (limited to 'demo/src/format-time.ts')
-rw-r--r--demo/src/format-time.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/demo/src/format-time.ts b/demo/src/format-time.ts
index a82b3b0..2afdcbf 100644
--- a/demo/src/format-time.ts
+++ b/demo/src/format-time.ts
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: MIT
+// Copyright (c) Uri Shaked and contributors
+
function zeroPad(value: number, length: number) {
let sval = value.toString();
while (sval.length < length) {