| 1 | [ |
| 2 | { |
| 3 | "id": "0007-date-time:001:Date-Time", |
| 4 | "expression": "date and time(dateTimeString)", |
| 5 | "expected": "2016-12-24T23:59:00-08:00", |
| 6 | "expected_type": "date and time", |
| 7 | "comparison": "exact", |
| 8 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects.", |
| 9 | "context": { |
| 10 | "dateString": "2015-12-24", |
| 11 | "timeString": "00:00:01-01:00", |
| 12 | "dateTimeString": "2016-12-24T23:59:00-08:00", |
| 13 | "Hours": 12.0, |
| 14 | "Minutes": 59.0, |
| 15 | "Seconds": 1.3, |
| 16 | "Timezone": { |
| 17 | "@type": "duration", |
| 18 | "@value": "-PT1H" |
| 19 | }, |
| 20 | "Year": 1999.0, |
| 21 | "Month": 11.0, |
| 22 | "Day": 22.0, |
| 23 | "oneHour": { |
| 24 | "@type": "duration", |
| 25 | "@value": "PT1H" |
| 26 | }, |
| 27 | "durationString": "P13DT2H14S" |
| 28 | } |
| 29 | }, |
| 30 | { |
| 31 | "id": "0007-date-time:001:Time", |
| 32 | "expression": "time(timeString)", |
| 33 | "expected": "00:00:01-01:00", |
| 34 | "expected_type": "time", |
| 35 | "comparison": "exact", |
| 36 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects.", |
| 37 | "context": { |
| 38 | "dateString": "2015-12-24", |
| 39 | "timeString": "00:00:01-01:00", |
| 40 | "dateTimeString": "2016-12-24T23:59:00-08:00", |
| 41 | "Hours": 12.0, |
| 42 | "Minutes": 59.0, |
| 43 | "Seconds": 1.3, |
| 44 | "Timezone": { |
| 45 | "@type": "duration", |
| 46 | "@value": "-PT1H" |
| 47 | }, |
| 48 | "Year": 1999.0, |
| 49 | "Month": 11.0, |
| 50 | "Day": 22.0, |
| 51 | "oneHour": { |
| 52 | "@type": "duration", |
| 53 | "@value": "PT1H" |
| 54 | }, |
| 55 | "durationString": "P13DT2H14S" |
| 56 | } |
| 57 | }, |
| 58 | { |
| 59 | "id": "0007-date-time:001:Time3", |
| 60 | "expression": "time(Hours,Minutes,Seconds,Timezone)", |
| 61 | "expected": "12:59:01.3-01:00", |
| 62 | "expected_type": "time", |
| 63 | "comparison": "exact", |
| 64 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects.", |
| 65 | "context": { |
| 66 | "dateString": "2015-12-24", |
| 67 | "timeString": "00:00:01-01:00", |
| 68 | "dateTimeString": "2016-12-24T23:59:00-08:00", |
| 69 | "Hours": 12.0, |
| 70 | "Minutes": 59.0, |
| 71 | "Seconds": 1.3, |
| 72 | "Timezone": { |
| 73 | "@type": "duration", |
| 74 | "@value": "-PT1H" |
| 75 | }, |
| 76 | "Year": 1999.0, |
| 77 | "Month": 11.0, |
| 78 | "Day": 22.0, |
| 79 | "oneHour": { |
| 80 | "@type": "duration", |
| 81 | "@value": "PT1H" |
| 82 | }, |
| 83 | "durationString": "P13DT2H14S" |
| 84 | } |
| 85 | }, |
| 86 | { |
| 87 | "id": "0007-date-time:001:dtDuration1", |
| 88 | "expression": "duration(durationString)", |
| 89 | "expected": "P13DT2H14S", |
| 90 | "expected_type": "duration", |
| 91 | "comparison": "exact", |
| 92 | "deviation": "Temporal result compared in feel-core's canonical ISO-8601 form (ADR-18). feel-core backs temporal values with jiff; at the wrappers they cross the boundary as ISO-8601 strings, so PostgreSQL can cast to date/timestamptz/interval (ADR-5's interval mapping) and WASM can return JS Date objects.", |
| 93 | "context": { |
| 94 | "dateString": "2015-12-24", |
| 95 | "timeString": "00:00:01-01:00", |
| 96 | "dateTimeString": "2016-12-24T23:59:00-08:00", |
| 97 | "Hours": 12.0, |
| 98 | "Minutes": 59.0, |
| 99 | "Seconds": 1.3, |
| 100 | "Timezone": { |
| 101 | "@type": "duration", |
| 102 | "@value": "-PT1H" |
| 103 | }, |
| 104 | "Year": 1999.0, |
| 105 | "Month": 11.0, |
| 106 | "Day": 22.0, |
| 107 | "oneHour": { |
| 108 | "@type": "duration", |
| 109 | "@value": "PT1H" |
| 110 | }, |
| 111 | "durationString": "P13DT2H14S" |
| 112 | } |
| 113 | } |
| 114 | ] |