MCPcopy Index your code
hub / github.com/acode/cli / isDate

Function isDate

cli/tabler.js:3–6  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

1const chalk = require('chalk');
2
3function isDate (dt) {
4 return dt instanceof Date ||
5 dt.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}\w$/);
6}
7
8function zeroPad (n, l, s) {
9 s = s === undefined ? '0' : s;

Callers 1

tabler.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected