Initial commit

This commit is contained in:
2026-04-28 10:29:02 +02:00
parent e8636b08be
commit f22a25ce46
26 changed files with 3951 additions and 1 deletions

9
test-time.js Normal file
View File

@@ -0,0 +1,9 @@
function parseTime(tStr) {
if (!tStr) return [12, 0]
const p = tStr.toString().split(':').map(Number)
return [isNaN(p[0]) ? 12 : p[0], isNaN(p[1]) ? 0 : p[1]]
}
console.log(parseTime('00:00:30'));
console.log(parseTime('07:23'));
console.log(parseTime(''));