PHP Classes

File: public/assets/bower_components/bootstrap-datepicker/tests/assets/utils.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Inventory Management System with Scanner   public/assets/bower_components/bootstrap-datepicker/tests/assets/utils.js   Download  
File: public/assets/bower_components/bootstrap-datepicker/tests/assets/utils.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change:
Date: 1 year ago
Size: 617 bytes
 

Contents

Class file image Download
function UTCDate(){ return new Date(Date.UTC.apply(Date, arguments)); } function format_date(date){ var y = date.getUTCFullYear(), m = date.getUTCMonth() + 1, d = date.getUTCDate(), h = date.getUTCHours(), i = date.getUTCMinutes(), s = date.getUTCSeconds(), l = date.getUTCMilliseconds(); function z(i){return (i <= 9 ? '0'+i : i);} return y+'-'+z(m)+'-'+z(d)+' '+z(h)+':'+z(i)+':'+z(s)+'.'+z(l); } function datesEqual(actual, expected, message){ QUnit.push(QUnit.equiv(actual, expected), format_date(actual), format_date(expected), message); }