6d4f2dcc7c
... implementing signed years with year 0 gap. Date(31,12,-1) last day BCE Date(1,1,1) first day CE New class Date member functions: * AddYears(sal_Int16) to be used instead of aDate.SetYear(aDate.GetYear()+sal_Int16) to handle year 0 gap. * convenience GetNextYear() to be used insted of GetYear()+1 * convenience GetPrevYear() to be used insted of GetYear()-1 * AddMonths(sal_Int32) * operator=(const css::util::Date&) New class DateTime member functions: * operator=(const css::util::DateTime&) Made some conversion ctors explicit, specifically Date(sal_Int32) Adapted hopefully all places that used a sal_uInt16 year to use sal_Int16 where appropriate. Eliminated some quirks in date handling found on the fly. Added era handling to i18npool icu calendar setting interface, which missing was responsible for 0001-01-01 entered in Calc being set as -0001-01-01, hence subtracting one day resulted in -0002-12-31. Change-Id: I77b39fba9599ebd5067d7864f6c9ebe01f6f578f Reviewed-on: https://gerrit.libreoffice.org/27049 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#*************************************************************************
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
#*************************************************************************
|
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,tools_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_external,tools_test,boost_headers))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,tools_test, \
|
|
tools/qa/cppunit/test_bigint \
|
|
tools/qa/cppunit/test_date \
|
|
tools/qa/cppunit/test_fract \
|
|
tools/qa/cppunit/test_inetmime \
|
|
tools/qa/cppunit/test_pathutils \
|
|
tools/qa/cppunit/test_reversemap \
|
|
tools/qa/cppunit/test_stream \
|
|
tools/qa/cppunit/test_urlobj \
|
|
tools/qa/cppunit/test_color \
|
|
tools/qa/cppunit/test_rectangle \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,tools_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,tools_test, \
|
|
sal \
|
|
tl \
|
|
$(gb_UWINAPI) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_static_libraries,tools_test, \
|
|
ooopathutils \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,tools_test,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/tools/inc \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|