RedNeath / ExcelFormulaCalculationEngine

A pure C library that works as an interface to compute Excel formulas, given a data context. It is a recreation of Excel's language calculation engine, with an extra level of abstraction to separate it from the sheet context; allowing lightweight integration within smaller systems.
MIT License
1 stars 0 forks source link

Improve date handling #15

Open RedNeath opened 3 months ago

RedNeath commented 3 months ago

Right now, in the context, we define date variables as being unsigned long values, which is incorrect.

As stated in the issue about creating the context, dates are stored as their UNIX timestamp value. That means that, being stored in an unsigned variable, all dates before the 1st of January 1970 will not be interpreted correctly.