};
function getMultiplier(unit) {
- if (unit == 'MSECS')
+ if (unit === 'MSECS')
return 1.0;
- if (unit == 'SECS')
+ if (unit === 'SECS')
return 1.0 * 1000.0;
- if (unit == 'MINS')
+ if (unit === 'MINS')
return 60.0 * 1000.0;
- if (unit == 'HOURS')
+ if (unit === 'HOURS')
return 3600.0 * 1000.0;
return 86400.0 * 1000.0;
}
var dayInMsecs = _hourInMilliseconds * 24;
length = Math.floor(length);
- if ((length % dayInMsecs) == 0)
+ if ((length % dayInMsecs) === 0)
return new tizen.TimeDuration(length / dayInMsecs, 'DAYS');
return new tizen.TimeDuration(length, 'MSECS');
}]);
try {
- return this.getMilliseconds() == args.other.getMilliseconds();
+ return this.getMilliseconds() === args.other.getMilliseconds();
} catch (e) {
_throwProperTizenException(e);
}
if (!arguments.length)
this.date_ = new Date();
- else if (arguments.length == 1 || arguments.length == 2) {
+ else if (arguments.length === 1 || arguments.length === 2) {
if (arguments[0] instanceof Date)
this.date_ = arguments[0];
else
}]);
try {
- return this.getTime() == args.other.getTime();
+ return this.getTime() === args.other.getTime();
} catch (e) {
_throwProperTizenException(e);
}
return null;
}
var _result = native_.getResultObject(result);
- if (result.error || _result == 0)
+ if (result.error || _result === 0)
return null;
var OffsetInMilliseconds = this.date_.getTimezoneOffset() * _minuteInMilliseconds * -1;
return new tizen.TZDate(new Date(_result - OffsetInMilliseconds), this.timezone_);
return null;
}
var _result = native_.getResultObject(result);
- if (result.error || _result == 0)
+ if (result.error || _result === 0)
return null;
var OffsetInMilliseconds = this.date_.getTimezoneOffset() * _minuteInMilliseconds * -1;
return new tizen.TZDate(new Date(_result - OffsetInMilliseconds), this.timezone_);