date block work

pull/3/merge
Michael Ball 2014-01-22 20:05:46 -08:00
rodzic f39f8fbc08
commit ede60eec56
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -2479,16 +2479,14 @@ Process.prototype.reportTimer = function () {
var dateMap = {
'date' : 'toLocaleDateString',
'time' : 'toLocaleTimeString',
'month' : 'getMonthName', // return a name, not a number
'year' : 'getFullYear',
'month' : 'getMonthName', // return a name, not a number
'date': 'getDate',
'day of week' : 'getDayName', // return a name, not a number
'day of month': 'getDate',
'hour' : 'getHours',
'minute' : 'getMinutes',
'second' : 'getSeconds',
'milliseconds' : 'getMilliseconds',
'time in milliseconds' : 'getTime',
'UTC time' : 'toUTCString' };
'time in milliseconds' : 'getTime' };
Process.prototype.reportDate = function (datefn) {
if (!dateMap[datefn]) { return ''; }