function ticker(y,m,d,h,mn)
{
    this.sd=new Date(y,m-1,d,0,00,0);
    this.st=new Date(y,m-1,d,h,mn,0);
};
ticker.prototype={
getStartdate:       function(){return this.sd;},
getStarttime:       function(){return this.st;},
getSecondsSinceTime:function(){return Math.floor((new Date()-this.st)/1000);},
getMinutesSinceTime:function(){return Math.floor((new Date()-this.st)/1000/60);},
getHoursSinceTime:  function(){return Math.floor((new Date()-this.st)/1000/60/60);},
getDaysSinceTime:   function(){return Math.floor((new Date()-this.st)/1000/60/60/24);},

getDaysSinceDay:    function(){return Math.floor((new Date()-this.sd)/1000/60/60/24);},
getWeeksSinceDay:   function(){return Math.floor((new Date()-this.sd)/1000/60/60/24/7);},

getTimeDiff:        function(){ return (new Date()).Diff(this.st); },
getAge:             function(){ return this.sd.Age(new Date()); },
};
