Christopher Lam
d935edeea5
[gnc-date.cpp] deprecate gnc_difftime
...
because it casts time64 to doubles
2 years ago
Geert Janssens
6cd8e4e458
Doxygen - drop obvious cases of deprecated code
2 years ago
John Ralls
c87d480b0d
Move gnc_list_formatter from gnc-date to gnc-ui-util.
...
It has nothing at all to do with dates.
2 years ago
Christopher Lam
ab7ead39ca
use icu::ListFormatter to combine a list strings into a string
3 years ago
Richard Cohen
d63248dad2
Update Y2038 comments
3 years ago
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++".
3 years ago
John Ralls
a807d3e6b7
Create function gnc_tm_get_today_neutral.
...
To complement gnc_tm_get_today_begin and gnc_tm_get_today_end.
4 years ago
Robert Fewell
27cab58bf2
Correct some text describing some date functions.
4 years ago
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.
5 years ago
Bill Nottingham
c0f2c3ae25
Fix build with glib2 2.67.x.
...
glib headers should not be included with 'extern "C"'.
5 years ago
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
7 years ago
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.
8 years ago
John Ralls
35fabe2690
Remove Timespec from gnc-date.
8 years ago
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.
8 years ago
John Ralls
b60aef9d2a
Remove timespec2dmy.
...
It had only two uses and one was in a test. Replace those calls with
gnc_localtime_r.
8 years ago
John Ralls
6d605762dd
Delete the last vestiges of timepair.
8 years ago
lmat
6dc982c2c6
Some time64 corrections
...
The build system isn't always catching changed files, so these showed up
later.
8 years ago
lmat
1f050fd1e5
Transaction members Timespec->time64
8 years ago
lmat
598cb6d861
gncEntry members timespec->time64
8 years ago
lmat
f77369bb96
Removing timspec from some xml parsing
...
And several other sprawling references that are connected in one
way or another.
8 years ago
lmat
7390396af9
added gnc-dmy2time64* functions
8 years ago
lmat
7d51089501
Changing scheme conversion to gdate to use time64
8 years ago
lmat
ee56f5df78
Adding some time64 API functions
8 years ago
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.
8 years ago
John Ralls
13657ee1bb
Merge branch 'maint' into unstable
9 years ago
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
9 years ago
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.
9 years ago