kopia lustrzana https://github.com/backface/turtlestitch
jslint style fixes
rodzic
5fd102c8a9
commit
407dbda43f
14
threads.js
14
threads.js
|
@ -2546,24 +2546,24 @@ var dateMap = {
|
|||
'hour' : 'getHours',
|
||||
'minute' : 'getMinutes',
|
||||
'second' : 'getSeconds',
|
||||
'time in milliseconds' : 'getTime' };
|
||||
'time in milliseconds' : 'getTime'
|
||||
};
|
||||
|
||||
Process.prototype.reportDate = function (datefn) {
|
||||
inputFn = this.inputOption(datefn);
|
||||
var inputFn = this.inputOption(datefn),
|
||||
currDate = new Date(),
|
||||
func = dateMap[inputFn],
|
||||
result = currDate[func]();
|
||||
|
||||
if (!dateMap[inputFn]) { return ''; }
|
||||
|
||||
currDate = new Date();
|
||||
func = dateMap[inputFn];
|
||||
result = currDate[func]();
|
||||
|
||||
// Show months as 1-12 and days as 1-7
|
||||
if (inputFn === 'month' || inputFn === 'day of week') {
|
||||
result += 1;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
// Process code mapping
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue