PHP Classes

File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/create/from-object.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/create/from-object.js   Download  
File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/create/from-object.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Coffee CMS
Content management system using MVC based themes
Author: By
Last change:
Date: 2 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); }