Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
1
const
chalk = require(
'chalk'
);
2
3
function
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
8
function
zeroPad (n, l, s) {
9
s = s === undefined ?
'0'
: s;
Callers
1
tabler.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected