
var secondReaderName = {};
secondReaderName.SecondReader = function(duration){
	this.duration = parseInt(duration);
	this.day = 0;
	this.hour = 0;
	this.minute = 0;
	this.second = 0;
};

secondReaderName.SecondReader.prototype.calc = function(){
	if(isNaN(this.duration )){
		return;
	}
	this.hour = parseInt((this.duration -  this.duration % 3600)/ 3600);
	this.minute =parseInt( (this.duration - 3600 * this.hour)  / 60);
	this.second =parseInt( this.duration % 60 );
};

secondReaderName.SecondReader.prototype.calcFromDay = function(){
	this.calc();
	this.day = parseInt(this.hour / 24 );
	this.hour = this.hour - this.day * 24 ;	
};