LibreOffice Module basic (master) 1
date.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <com/sun/star/util/Date.hpp>
23#include <com/sun/star/util/Time.hpp>
24#include <com/sun/star/util/DateTime.hpp>
25
26#include <basic/sbxvar.hxx>
27
29{
30 None,
33};
34
35bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bUseTwoDigitYear, SbDateCorrection eCorr, double& rdRet );
36double implTimeSerial( sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond);
37bool implDateTimeSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay,
38 sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond,
39 double& rdRet );
40
41sal_Int16 implGetWeekDay( double aDate, bool bFirstDayParam = false, sal_Int16 nFirstDay = 0 );
42
43sal_Int16 implGetDateYear( double aDate );
44sal_Int16 implGetDateMonth( double aDate );
45sal_Int16 implGetDateDay( double aDate );
46
47sal_Int16 implGetHour( double dDate );
48sal_Int16 implGetMinute( double dDate );
49sal_Int16 implGetSecond( double dDate );
50
51css::util::Date SbxDateToUNODate( const SbxValue* );
52void SbxDateFromUNODate( SbxValue*, const css::util::Date& );
53css::util::Time SbxDateToUNOTime( const SbxValue* );
54void SbxDateFromUNOTime( SbxValue*, const css::util::Time& );
55css::util::DateTime SbxDateToUNODateTime( const SbxValue* );
56void SbxDateFromUNODateTime( SbxValue*, const css::util::DateTime& );
57
58/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int16 implGetHour(double dDate)
void SbxDateFromUNOTime(SbxValue *, const css::util::Time &)
bool implDateTimeSerial(sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond, double &rdRet)
Definition: methods.cxx:4750
bool implDateSerial(sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bUseTwoDigitYear, SbDateCorrection eCorr, double &rdRet)
Definition: methods.cxx:4630
void SbxDateFromUNODate(SbxValue *, const css::util::Date &)
sal_Int16 implGetWeekDay(double aDate, bool bFirstDayParam=false, sal_Int16 nFirstDay=0)
Definition: methods1.cxx:2953
sal_Int16 implGetDateYear(double aDate)
Definition: methods.cxx:4621
void SbxDateFromUNODateTime(SbxValue *, const css::util::DateTime &)
sal_Int16 implGetSecond(double dDate)
css::util::DateTime SbxDateToUNODateTime(const SbxValue *)
sal_Int16 implGetMinute(double dDate)
Definition: methods.cxx:4761
css::util::Date SbxDateToUNODate(const SbxValue *)
css::util::Time SbxDateToUNOTime(const SbxValue *)
sal_Int16 implGetDateDay(double aDate)
sal_Int16 implGetDateMonth(double aDate)
SbDateCorrection
Definition: date.hxx:29
double implTimeSerial(sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond)
Definition: methods.cxx:4740
None