anthonymorast / DataTables

A tabular data structure for C++
23 stars 6 forks source link

Accommodate Date/DateTime in columns #5

Closed anthonymorast closed 2 years ago

anthonymorast commented 4 years ago

Could convert back and forth between Unix epoch to be able to store in the existing double array. Would need to keep an array/vector of the column numbers that are datetimes and print and operate on these columns accordingly

anthonymorast commented 3 years ago

Added basic support for dates in the "yyyy-mm-dd" format so at least daily time series data can be handled for the time being

aff194645f3ca7d56a5d9a6815a8ca0fb9258b40

anthonymorast commented 3 years ago

Added a utility class to handle datetimes and added support for a few different formats. To extend, more regular expressions need to be added to the datetime map in the DateUtils constructor.

fc98732cfb0bbdddfe9d3b91f49f6d5f55d4e46b

anthonymorast commented 2 years ago

More formats can be added later if need be. Many common formats are included.