%PDF- %PDF-
Direktori : /home/medipszd/public_html/bower_components/moment/src/lib/create/ |
Current File : /home/medipszd/public_html/bower_components/moment/src/lib/create/from-object.js |
import { normalizeObjectUnits } from '../units/aliases'; import { configFromArray } from './from-array'; import map from '../utils/map'; export function configFromObject(config) { if (config._d) { return; } var i = normalizeObjectUnits(config._i); config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) { return obj && parseInt(obj, 10); }); configFromArray(config); }