This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fmt; | |
#[derive(Clone, Debug)] | |
pub struct DateTime { | |
/// Seconds after the minute - [0, 59] | |
pub sec: i32, | |
/// Minutes after the hour - [0, 59] | |
pub min: i32, | |
/// Hours after midnight - [0, 23] | |
pub hour: i32, |