Impl DateTime

This commit is contained in:
Matthias Beyer 2016-05-28 20:38:59 +02:00
parent 1eb59e3142
commit 3d066e6633

View file

@ -11,8 +11,19 @@ pub struct DateTime {
impl DateTime {
fn new(date: Date, time: Time) -> DateTime {
unimplemented!()
pub fn new(date: Date, time: Time) -> DateTime {
DateTime {
date: date,
time: time
}
}
pub fn date(&self) -> &Date {
&self.date
}
pub fn time(&self) -> &Time {
&self.time
}
}