Ymdhms Mon Apr 24 2017 08:47:31 GMT+0100 (BST) | |||||
Number failed: 10Number passed:1File: /Servers/htdocs/test/2013/js/day/tests/scripts//Ymdhms.testScript | |||||
Line | Test | Expected | Actual | Comment | |
# Testing Ymdhms() output function | |||||
3 | SETCONFIG(IMPLIED_YEAR, -2) | IMPLIED_YEAR set to -2 | allow floating date input | ||
# |DATE: Js Date |ARRAY: [y,m,d,h,m,s] | YMDHMS | | |||||
5 | YMDHMS(13 May 2015) | Exp:|2015-05-13T00:00:00.000Z|[2015, 5,13, 0, 0, 0]|2015-05-13 00:00:00| Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | |||
6 | YMDHMS(13 Aug 1957) | Exp:|1957-08-13T00:00:00.000Z|[1957, 8,13, 0, 0, 0]|1957-08-13 00:00:00| Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | |||
7 | YMDHMS(!) | Exp:|-004096-12-30T02:00:00.000Z|[-4096,12,30, 2, 0, 0]|-4096-12-30 02:00:00|NV +ve Y:0 M:0 D:0 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | Not Valid | ||
8 | YMDHMS(NK) | Exp:|-004096-12-31T04:00:00.000Z|[-4096,12,31, 4, 0, 0]|-4096-12-31 04:00:00|NK +ve Y:0 M:0 D:0 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | Not known | ||
9 | YMDHMS(B) | Exp:|-004096-12-31T05:00:00.000Z|[-4096,12,31, 5, 0, 0]|-4096-12-31 05:00:00|BoT +ve Y:0 M:0 D:0 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | beg of time | ||
10 | YMDHMS(E) | Exp:|4096-01-01T07:00:00.000Z|[4096, 1, 1, 7, 0, 0]|4096-01-01 07:00:00|EoT +ve Y:0 M:0 D:0 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | end of time | ||
# Valid ranges | |||||
14 | YMDHMS(1 Jan 4095 BC) | Exp:|-004095-01-01T00:00:00.000Z|[-4095, 1, 1, 0, 0, 0]|-4095-01-01 00:00:00| Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | First valid cal | ||
15 | YMDHMS(31 Dec 4095) | Exp:|4095-12-31T00:00:00.000Z|[4095,12,31, 0, 0, 0]|4095-12-31 00:00:00| Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | Last valid cal | ||
# Float | |||||
18 | YMDHMS(4 Nov) | Exp:|0000-11-04T03:04:00.000Z|[ 0,11, 4, 3, 4, 0]|0000-11-04 03:04:00|FLO +ve Y:0 M:11 D:4 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | Float | ||
# Partial | |||||
21 | YMDHMS(Jan 2010) | Exp:|2010-12-31T00:01:00.000Z|[2010, 1, 0, 0, 1, 0]|2010-01-00 00:01:00|Cal +ve Y:2010 M:1 D:0 e:0 Act: EXCEPTION: TypeError: undefined is not a function Line: undefined is not a function File: TypeError | Partial CAL |