MCPcopy Index your code
hub / github.com/ddopson/underscore-cli / f3

Function f3

lib/formatter.js:201–204  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

199 return (n < 10) ? ('0' + n) : n;
200 }
201 function f3(n) {
202 // Format integers to have at least three digits.
203 return (n < 10) ? ('00' + n) : (n < 100) ? ('0' + n) : n;
204 }
205
206 return d.getUTCFullYear() + '-' +
207 f2(d.getUTCMonth() + 1) + '-' +

Callers 1

ISO8601Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected