I had a look and I have to say... your clarity in thinking reflects in the code base.
However, it's way over my head at the moment.
Is it right that additions will be to a new src/array/temporal.rs, where we'd want to convert the above to -
Date:
Date32Type
Time:
Time32MillisecondType
Time32SecondType
Duration:
DurationSecondType
DurationNanosecondType
DurationMillisecondType
DurationMicrosecondType
When you have time to get into this, if you can show how to implement one in each of these groups (or maybe just one overall?), I might be able to understand what's needed then and help with the remaining.
Sample code in case it helps
#[derive(Debug)]
// #[derive(Debug, ArrayType)]
pub struct OrdinalDate0(pub(crate) Option<NaiveDate>);
#[derive(Debug)]
// #[derive(Debug, ArrayType)]
pub struct HhMmSs0(pub(crate) Option<NaiveTime>);
#[derive(Debug)]
// #[derive(Debug, ArrayType)]
pub struct Chrony0 {
t: HhMmSs0,
d: OrdinalDate0,
}
fn main() {
let chrony0 = Chrony0 {
t: HhMmSs0(Some(NaiveTime::default())),
d: OrdinalDate0(Some(NaiveDate::default())),
};
println!("{:#?}", chrony0);
}
chronofeature #167NaiveDateandTimeDeltafromchrono#230chronofeature #167chronofeature #167NaiveDateandTimeDeltafromchrono#230I had a look and I have to say... your clarity in thinking reflects in the code base.
However, it's way over my head at the moment.
Is it right that additions will be to a new
src/array/temporal.rs, where we'd want to convert the above to -Date:
Date32Type
Time:
Time32MillisecondType
Time32SecondType
Duration:
DurationSecondType
DurationNanosecondType
DurationMillisecondType
DurationMicrosecondType
When you have time to get into this, if you can show how to implement one in each of these groups (or maybe just one overall?), I might be able to understand what's needed then and help with the remaining.
Sample code in case it helps