Rev 1189 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1189 | Rev 1231 | ||
|---|---|---|---|
| Line 88... | Line 88... | ||
| 88 | return this.getFullYear() + "-" + (this.getMonth()+1).toString().pad(2, "0", 0) + "-" + this.getDate().toString().pad(2, "0", 0); |
88 | return this.getFullYear() + "-" + (this.getMonth()+1).toString().pad(2, "0", 0) + "-" + this.getDate().toString().pad(2, "0", 0); |
| 89 | } |
89 | } |
| 90 | 90 | ||
| 91 | Date.prototype.getTimeFormated = function() |
91 | Date.prototype.getTimeFormated = function() |
| 92 | { |
92 | { |
| 93 | return this.getHours().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(); |