Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
submission report
Commit Description:
submission report
'use strict' ;
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
var fails = require ( './_fails' );
var getTime = Date . prototype . getTime ;
var $toISOString = Date . prototype . toISOString ;
var lz = function ( num ) {
return num > 9 ? num : '0' + num ;
};
// PhantomJS / old WebKit has a broken implementations
module . exports = ( fails ( function () {
return $toISOString . call ( new Date ( - 5 e13 - 1 )) != '0385-07-25T07:06:39.999Z' ;
}) || ! fails ( function () {
$toISOString . call ( new Date ( NaN ));
})) ? function toISOString () {
if ( ! isFinite ( getTime . call ( this ))) throw RangeError ( 'Invalid time value' );
var d = this ;
var y = d . getUTCFullYear ();
var m = d . getUTCMilliseconds ();
var s = y < 0 ? '-' : y > 9999 ? '+' : '' ;
return s + ( '00000' + Math . abs ( y )). slice ( s ? - 6 : - 4 ) +
'-' + lz ( d . getUTCMonth () + 1 ) + '-' + lz ( d . getUTCDate ()) +
'T' + lz ( d . getUTCHours ()) + ':' + lz ( d . getUTCMinutes ()) +
':' + lz ( d . getUTCSeconds ()) + '.' + ( m > 99 ? m : '0' + lz ( m )) + 'Z' ;
} : $toISOString ;
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings