blob: 9f6ade42497c2bd6b3706037b212b0e4ff0391ca [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
runTest(new Date(-3260000000000000));
runTest(new Date(-860000000000000));
runTest(new Date(-62167219200001));
runTest(new Date(3260000000000000));
runTest(new Date(860000000000000));
runTest(new Date(-61167219200001));
runTest(new Date(-62140000000000));
function runTest(d)
{
writeLine(d.toJSON());
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Helpers
function writeLine(str)
{
WScript.Echo("" + str);
}
function safeCall(func)
{
try
{
return func();
}
catch (ex)
{
writeLine(ex.name + ": " + ex.message);
}
}