PHP Classes

File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/duration/abs.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/duration/abs.js   Download  
File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/duration/abs.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: 3 years ago
Size: 545 bytes
 

Contents

Class file image Download
var mathAbs = Math.abs; export function abs () { var data = this._data; this._milliseconds = mathAbs(this._milliseconds); this._days = mathAbs(this._days); this._months = mathAbs(this._months); data.milliseconds = mathAbs(data.milliseconds); data.seconds = mathAbs(data.seconds); data.minutes = mathAbs(data.minutes); data.hours = mathAbs(data.hours); data.months = mathAbs(data.months); data.years = mathAbs(data.years); return this; }