Lines Matching refs:date
57 let date: String = s.get("json_datetime").unwrap(); in test_datetime_string() localVariable
59 assert_eq!(&date, "2017-05-10T02:14:53Z"); in test_datetime_string()
62 let date: String = s.get("toml_datetime").unwrap(); in test_datetime_string() localVariable
64 assert_eq!(&date, "2017-05-11T14:55:15Z"); in test_datetime_string()
67 let date: String = s.get("yaml_datetime").unwrap(); in test_datetime_string() localVariable
69 assert_eq!(&date, "2017-06-12T10:58:30Z"); in test_datetime_string()
72 let date: String = s.get("ini_datetime").unwrap(); in test_datetime_string() localVariable
74 assert_eq!(&date, "2017-05-10T02:14:53Z"); in test_datetime_string()
77 let date: String = s.get("ron_datetime").unwrap(); in test_datetime_string() localVariable
79 assert_eq!(&date, "2021-04-19T11:33:02Z"); in test_datetime_string()
87 let date: DateTime<Utc> = s.get("json_datetime").unwrap(); in test_datetime() localVariable
89 assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 10, 2, 14, 53).unwrap()); in test_datetime()
92 let date: DateTime<Utc> = s.get("toml_datetime").unwrap(); in test_datetime() localVariable
94 assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 11, 14, 55, 15).unwrap()); in test_datetime()
97 let date: DateTime<Utc> = s.get("yaml_datetime").unwrap(); in test_datetime() localVariable
99 assert_eq!(date, Utc.with_ymd_and_hms(2017, 6, 12, 10, 58, 30).unwrap()); in test_datetime()
102 let date: DateTime<Utc> = s.get("ini_datetime").unwrap(); in test_datetime() localVariable
104 assert_eq!(date, Utc.with_ymd_and_hms(2017, 5, 10, 2, 14, 53).unwrap()); in test_datetime()
107 let date: DateTime<Utc> = s.get("ron_datetime").unwrap(); in test_datetime() localVariable
109 assert_eq!(date, Utc.with_ymd_and_hms(2021, 4, 19, 11, 33, 2).unwrap()); in test_datetime()