Blame view

bower_components/prism/tests/languages/yaml/datetime_feature.test 836 Bytes
eb240478   Luigi Serra   public room cards...
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
  ---

  canonical: 2001-12-15T02:59:43.1Z

  iso8601: 2001-12-14t21:59:43.10-05:00

  spaced: 2001-12-14 21:59:43.10 -5

  date: 2002-12-14

  times:

  	- 10:53

  	- 10:53:20.53

  

  ----------------------------------------------------

  

  [

  	["punctuation", "---"],

  	["key", "canonical"], ["punctuation", ":"],

  	["datetime", "2001-12-15T02:59:43.1Z"],

  	["key", "iso8601"], ["punctuation", ":"],

  	["datetime", "2001-12-14t21:59:43.10-05:00"],

  	["key", "spaced"], ["punctuation", ":"],

  	["datetime", "2001-12-14 21:59:43.10 -5"],

  	["key", "date"], ["punctuation", ":"],

  	["datetime", "2002-12-14"],

  	["key", "times"], ["punctuation", ":"],

  	["punctuation", "-"],

  	["datetime", "10:53"],

  	["punctuation", "-"],

  	["datetime", "10:53:20.53"]

  ]

  

  ----------------------------------------------------

  

  Checks for dates, times and datetimes.