PHP Classes

File: upload/themes/bb_simple/assets/moment/src/lib/create/from-object.js

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/themes/bb_simple/assets/moment/src/lib/create/from-object.js   Download  
File: upload/themes/bb_simple/assets/moment/src/lib/create/from-object.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Bulletin Board
Manage and post messages in multi-user forums
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); }