bump product version to 5.0.4.1
[LibreOffice.git] / basic / source / inc / date.hxx
blob864aab85396b42da84392e060e90ffb3b65bd9e3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BASIC_SOURCE_INC_DATE_HXX
21 #define INCLUDED_BASIC_SOURCE_INC_DATE_HXX
23 #include <com/sun/star/util/Date.hpp>
24 #include <com/sun/star/util/Time.hpp>
25 #include <com/sun/star/util/DateTime.hpp>
27 bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, double& rdRet );
28 double implTimeSerial( sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond);
29 bool implDateTimeSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay,
30 sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond,
31 double& rdRet );
33 sal_Int16 implGetWeekDay( double aDate, bool bFirstDayParam = false, sal_Int16 nFirstDay = 0 );
35 sal_Int16 implGetDateYear( double aDate );
36 sal_Int16 implGetDateMonth( double aDate );
37 sal_Int16 implGetDateDay( double aDate );
39 sal_Int16 implGetHour( double dDate );
40 sal_Int16 implGetMinute( double dDate );
41 sal_Int16 implGetSecond( double dDate );
43 ::com::sun::star::util::Date SbxDateToUNODate( const SbxValue* );
44 void SbxDateFromUNODate( SbxValue*, const ::com::sun::star::util::Date& );
45 ::com::sun::star::util::Time SbxDateToUNOTime( const SbxValue* );
46 void SbxDateFromUNOTime( SbxValue*, const ::com::sun::star::util::Time& );
47 ::com::sun::star::util::DateTime SbxDateToUNODateTime( const SbxValue* );
48 void SbxDateFromUNODateTime( SbxValue*, const ::com::sun::star::util::DateTime& );
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */