src/flipclock/js/libs/time.js
function(date) {
			if(!date) {
				date = new Date();
			}

			if (this.time instanceof Date) {
				if (this.factory.countdown) {
					return Math.max(this.time.getTime()/1000 - date.getTime()/1000,0);
				} else {
					return date.getTime()/1000 - this.time.getTime()/1000 ;
				}
			} else {
				return this.time;
			}
		}
function(date) {
			if(!date) {
				date = new Date();
			}

			if (this.time instanceof Date) {
				if (this.factory.countdown) {
					return Math.max(this.time.getTime()/1000 - date.getTime()/1000,0);
				} else {
					return date.getTime()/1000 - this.time.getTime()/1000 ;
				}
			} else {
				return this.time;
			}
		}
function ( date ) { if ( ! date ) { date = new Date ( ) ; } if ( this . time instanceof Date ) { if ( this . factory . countdown ) { return Math . max ( this . time . getTime ( ) / 1000 - date . getTime ( ) / 1000 , 0 ) ; } else { return date . getTime ( ) / 1000 - this . time . getTime ( ) / 1000 ; } } else { return this . time ; } }
Gets time count in seconds regardless of if targetting date or not.

@return  int   Returns a floored integer
Gets time count in seconds regardless of if targetting date or not .