mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 06:08:54 +00:00
added function for leading zeros in dates
This commit is contained in:
parent
551dafdeec
commit
396b0cd58f
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ var ret = function(value) {
|
|||
return value;
|
||||
}
|
||||
|
||||
function pad(n) {
|
||||
return n < 10 ? '0' + n : n;
|
||||
}
|
||||
|
||||
var isInteger = function(i) {
|
||||
return (parseInt(i) + "" == i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue