PHP Classes

File: vendors/moment/src/lib/create/from-object.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/moment/src/lib/create/from-object.js   Download  
File: vendors/moment/src/lib/create/from-object.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 467 bytes
 

Contents

Class file image Download
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); }