kopia lustrzana https://github.com/backface/turtlestitch
date block work
rodzic
f39f8fbc08
commit
ede60eec56
|
@ -2479,16 +2479,14 @@ Process.prototype.reportTimer = function () {
|
||||||
var dateMap = {
|
var dateMap = {
|
||||||
'date' : 'toLocaleDateString',
|
'date' : 'toLocaleDateString',
|
||||||
'time' : 'toLocaleTimeString',
|
'time' : 'toLocaleTimeString',
|
||||||
'month' : 'getMonthName', // return a name, not a number
|
|
||||||
'year' : 'getFullYear',
|
'year' : 'getFullYear',
|
||||||
|
'month' : 'getMonthName', // return a name, not a number
|
||||||
|
'date': 'getDate',
|
||||||
'day of week' : 'getDayName', // return a name, not a number
|
'day of week' : 'getDayName', // return a name, not a number
|
||||||
'day of month': 'getDate',
|
|
||||||
'hour' : 'getHours',
|
'hour' : 'getHours',
|
||||||
'minute' : 'getMinutes',
|
'minute' : 'getMinutes',
|
||||||
'second' : 'getSeconds',
|
'second' : 'getSeconds',
|
||||||
'milliseconds' : 'getMilliseconds',
|
'time in milliseconds' : 'getTime' };
|
||||||
'time in milliseconds' : 'getTime',
|
|
||||||
'UTC time' : 'toUTCString' };
|
|
||||||
|
|
||||||
Process.prototype.reportDate = function (datefn) {
|
Process.prototype.reportDate = function (datefn) {
|
||||||
if (!dateMap[datefn]) { return ''; }
|
if (!dateMap[datefn]) { return ''; }
|
||||||
|
|
Ładowanie…
Reference in New Issue