tmontaigu / dbase-rs

Rust library to read & write dBase files.
MIT License
29 stars 30 forks source link

Question about working with DateTime and Time types #24

Closed worace closed 3 years ago

worace commented 3 years ago

Apologies if I'm missing something but it looks like the internal fields for the DateTime and Time types are private and aren't exposed through any getter functions: https://docs.rs/dbase/0.2.1/dbase/struct.DateTime.html

Is there another recommended way to access the data out of these types? Maybe there is a converter trait or something I missed?

I see in Date for example there are methods for getting the year/month/day components: https://docs.rs/dbase/0.2.1/dbase/struct.Date.html#method.year

tmontaigu commented 3 years ago

Woops it seems that the accessors/getter functions are indeed missing 😅

worace commented 3 years ago

Awesome, thanks!