MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / format

Method format

src/common/format/JSON.js:208–211  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

206 */
207 'date': function (date) {
208 function format(number) {
209 // Format integers to have at least two digits.
210 return (number < 10) ? '0' + number : number;
211 }
212
213 return '"' + date.getFullYear() + '-' +
214 format(date.getMonth() + 1) + '-' +

Callers 7

BaseTypesSpec.jsFile · 0.80
parseAndroidManifestMethod · 0.80
jasmine.jsFile · 0.80
test_create_win.jsFile · 0.80
mapbox-gl.jsFile · 0.80
ol.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected