(config)
| 2907 | } |
| 2908 | |
| 2909 | function configFromObject(config) { |
| 2910 | if (config._d) { |
| 2911 | return; |
| 2912 | } |
| 2913 | |
| 2914 | var i = normalizeObjectUnits(config._i), |
| 2915 | dayOrDate = i.day === undefined ? i.date : i.day; |
| 2916 | config._a = map( |
| 2917 | [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], |
| 2918 | function (obj) { |
| 2919 | return obj && parseInt(obj, 10); |
| 2920 | } |
| 2921 | ); |
| 2922 | |
| 2923 | configFromArray(config); |
| 2924 | } |
| 2925 | |
| 2926 | function createFromConfig(config) { |
| 2927 | var res = new Moment(checkOverflow(prepareConfig(config))); |
no test coverage detected