summaryrefslogtreecommitdiff
path: root/tests/files/success/test_type_timestamp.yaml
blob: 5bcfbccebce401992bdb3debc6a4a46c5e8d0a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: type-timestamp-1
desc: Most basic timestamp test
data: "2015-03-29T18:45:00+00:00"
schema:
  type: timestamp
---
name: type-timestamp-2
desc: Test timestamps as values in seq
data:
  - "2015-03-29T18:45:00+00:00"
  - "2015-03-29T18:45:00"
  - "2015-03-29T11:45:00 -0700"
  - "2015-03-29"
schema:
  type: seq
  sequence:
    - type: timestamp
---
name: type-timestamp-3
desc: Basic test of different types of timestamps
data:
  d1: "2015-03-29T18:45:00+00:00"
  d2: "2015-03-29T18:45:00"
  d3: "2015-03-29T11:45:00 -0700"
  d4: "2015-03-29"
schema:
  type: map
  mapping:
    d1:
      type: timestamp
    d2:
      type: timestamp
    d3:
      type: timestamp
    d4:
      type: timestamp