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
use chrono::{FixedOffset, NaiveDate};

use crate::{Datatype, XsdDatatype};
use core::fmt;

#[derive(Debug, Clone)]
pub struct Date {
	pub date: NaiveDate,
	pub offset: FixedOffset,
}

impl Date {
	pub fn new(date: NaiveDate, offset: FixedOffset) -> Self {
		Self { date, offset }
	}
}

impl XsdDatatype for Date {
	fn type_(&self) -> Datatype {
		Datatype::Date
	}
}

impl fmt::Display for Date {
	fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
		unimplemented!()
	}
}