| 12345678910111213141516171819202122232425262728293031323334353637 |
- //-------------------------------------------------------------------------------------------------------
- // 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);
- }
- }
|