Subversion Repositories HomeAutomation

Rev

Rev 1231 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1231 Rev 1232
Line 93... Line 93...
93
    return this.getHours().toString().pad(2, "0", 0) + ":" + this.getMinutes().toString().pad(2, "0", 0) + ":" + this.getSeconds().toString().pad(2, "0", 0);
93
    return this.getHours().toString().pad(2, "0", 0) + ":" + this.getMinutes().toString().pad(2, "0", 0) + ":" + this.getSeconds().toString().pad(2, "0", 0);
94
}
94
}
95
 
95
 
96
Date.prototype.getTimeShortFormated = function()
96
Date.prototype.getTimeShortFormated = function()
97
{
97
{
98
    return this.getHours().toString().pad(2, "0", 0) + ".:" + this.getMinutes().toString().pad(2, "0", 0);
98
    return this.getHours().toString().pad(2, "0", 0) + ":" + this.getMinutes().toString().pad(2, "0", 0);
99
}
99
}
100
 
100
 
101
Date.prototype.getDateTimeFormated = function()
101
Date.prototype.getDateTimeFormated = function()
102
{
102
{
103
    return this.getDateFormated() + " " + this.getTimeFormated();
103
    return this.getDateFormated() + " " + this.getTimeFormated();