Richard Cohen
1cec0cb3f3
Use internal extern "C" { ... } for C++
...
- removes warnings compiling swig engine
...
[ 10%] Generating swig-engine.cpp
.../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored),
.../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'.
.../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
2023-01-23 18:40:01 +00:00
John Ralls
a807d3e6b7
Create function gnc_tm_get_today_neutral.
...
To complement gnc_tm_get_today_begin and gnc_tm_get_today_end.
2022-09-06 14:35:11 -07:00
Robert Fewell
27cab58bf2
Correct some text describing some date functions.
2022-05-08 10:09:50 +01:00
John Ralls
3a35514d84
Fix the implementations of gnc_foo_get_day_neutral.
...
As implemented these returned 10:59 AM local on the day but neutral
time is 10:59 UTC.
2021-03-20 09:45:38 -07:00
Bill Nottingham
c0f2c3ae25
Fix build with glib2 2.67.x.
...
glib headers should not be included with 'extern "C"'.
2021-02-16 13:23:16 -08:00
Geert Janssens
ec6602adf9
[gnc-date][API] find locale's start of week using ICU.
...
gnc_start_of_week
* ICU has a mature C++ api, so prefer that one in our C++ code
* Use PERR instead of fprintf for consistent reporting
* Add the ICU specific linker flags to the test case
2019-08-15 13:18:43 +08:00
Geert Janssens
13f6c4d6d7
Introduce and use gnc_time64_get_day_neutral
...
This function complements gnc_time64_get_day_begin/end. There was
time64CanonicalDayTime but this returned noon of the given day, where we
want 10:59am in most cases. I haven't changed time64CanonicalDayTime
directly as that may break assumptions in other parts of the code.
Instead I have created a new function that can be gradually introduced.
2018-11-20 21:12:32 +01:00
John Ralls
35fabe2690
Remove Timespec from gnc-date.
2018-08-13 16:19:39 -07:00
John Ralls
c8b372e390
Convert GNC_TYPE_TIMESPEC to GNC_TYPE_TIME64, Kvp::Type::Timespec to Kvp::Type::Time64
...
They have to go together because of using gvalues to hide KVP from most of
GnuCash.
2018-08-12 16:12:19 -07:00
John Ralls
b60aef9d2a
Remove timespec2dmy.
...
It had only two uses and one was in a test. Replace those calls with
gnc_localtime_r.
2018-08-12 16:12:19 -07:00
John Ralls
6d605762dd
Delete the last vestiges of timepair.
2018-07-23 12:00:54 -07:00
lmat
6dc982c2c6
Some time64 corrections
...
The build system isn't always catching changed files, so these showed up
later.
2018-01-08 13:01:29 +11:00
lmat
1f050fd1e5
Transaction members Timespec->time64
2018-01-08 13:01:29 +11:00
lmat
598cb6d861
gncEntry members timespec->time64
2018-01-08 13:01:29 +11:00
lmat
f77369bb96
Removing timspec from some xml parsing
...
And several other sprawling references that are connected in one
way or another.
2018-01-08 13:01:29 +11:00
lmat
7390396af9
added gnc-dmy2time64* functions
2018-01-08 13:01:29 +11:00
lmat
7d51089501
Changing scheme conversion to gdate to use time64
2018-01-08 13:01:29 +11:00
lmat
ee56f5df78
Adding some time64 API functions
2018-01-08 13:01:29 +11:00
John Ralls
6db0820771
Fix offset handling in GncDateTime struct tm ctor, gnc_mktime, & gnc_timegm.
...
Tests now pass in all TZa from Honolulu to New Zealand.
2017-12-12 21:02:11 -08:00
John Ralls
13657ee1bb
Merge branch 'maint' into unstable
2017-11-25 15:35:24 -08:00
Robert Fewell
6ca85450a8
Move gnc-gdate-utils functions to gnc-date and remove files.
...
Also update related files to reflect move of gnc-gdate-util functions
2017-08-20 14:07:30 +01:00
Geert Janssens
83d14e1c1c
Restructure the src directory
...
It is split into
- /libgnucash (for the non-gui bits)
- /gnucash (for the gui)
- /common (misc source files used by both)
- /bindings (currently only holds python bindings)
This is the first step in restructuring the code. It will need much
more fine tuning later on.
2017-08-10 18:45:00 +02:00