sebkeim / insrcdata

embed your data
GNU General Public License v3.0
0 stars 0 forks source link

Datetime data type #6

Open sebkeim opened 1 year ago

sebkeim commented 1 year ago

Date and time management may be incredibly complex, see also this article.

We could start by supporting incremental time which only require so store a timestamp.

In Rust we would require the time crate and use OffsetDateTime::from_unix_timestamp(0)

in C language, time_t type is built-in

For size optimization, use a 'resolution' field in column record of toml configuration field. Can be used with the boxed strategy to store timestamp as a shorter integer column.