DateTime
このコンテンツはまだ日本語訳がありません。
Defined in: epoch.rs:215
pub struct DateTime { pub year: i32, pub month: u32, pub day: u32, pub hour: u32, pub min: u32, pub sec: f64,}A Gregorian calendar date and time (UTC).
本 struct は UTC 暦表示専用。TAI / TT / TDB 等の dynamical time scale は
直接 Gregorian で表現しない (Epoch<Utc> に変換してから to_datetime を使う)。
Fields
Section titled “Fields”year: i32
month: u32
day: u32
hour: u32
min: u32
sec: f64
Methods
Section titled “Methods”fn new(year: i32, month: u32, day: u32, hour: u32, min: u32, sec: f64) -> Self