Sha256: 7f89becde85b1cc4588ff71a01bba23a2912590728d4cbd5cfd15d5cadfbc990
Contents?: true
Size: 315 Bytes
Versions: 108
Compression:
Stored size: 315 Bytes
Contents
// Formats date and time as "2000.01.20 17:00" Date.prototype.toFormattedString = function(include_time) { str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate()); if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } return str; }
Version data entries
108 entries across 86 versions & 20 rubygems