Impl DateTime
This commit is contained in:
parent
1eb59e3142
commit
3d066e6633
1 changed files with 13 additions and 2 deletions
|
@ -11,8 +11,19 @@ pub struct DateTime {
|
||||||
|
|
||||||
impl DateTime {
|
impl DateTime {
|
||||||
|
|
||||||
fn new(date: Date, time: Time) -> DateTime {
|
pub fn new(date: Date, time: Time) -> DateTime {
|
||||||
unimplemented!()
|
DateTime {
|
||||||
|
date: date,
|
||||||
|
time: time
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn date(&self) -> &Date {
|
||||||
|
&self.date
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn time(&self) -> &Time {
|
||||||
|
&self.time
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue