LibreOffice Module tools (master) 1
datetimeutils.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
10#ifndef INCLUDED_TOOLS_DATETIMEUTILS_HXX
11#define INCLUDED_TOOLS_DATETIMEUTILS_HXX
12
13#include <tools/datetime.hxx>
14
15// This function converts a 'DateTime' object to an 'OString' object
16TOOLS_DLLPUBLIC OString DateTimeToOString(const DateTime& rDateTime);
17
18// This function converts a 'Date' object to an 'OString' object in ISO-8601 representation
19TOOLS_DLLPUBLIC OString DateToOString(const Date& rDate);
20
21// This function converts a 'Date' object to an 'OString' object in DD/MM/YYYY format
22TOOLS_DLLPUBLIC OString DateToDDMMYYYYOString(const Date& rDate);
23
24#endif
25
26/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Represents a date in the proleptic Gregorian calendar.
Definition: date.hxx:55
TOOLS_DLLPUBLIC OString DateTimeToOString(const DateTime &rDateTime)
TOOLS_DLLPUBLIC OString DateToDDMMYYYYOString(const Date &rDate)
TOOLS_DLLPUBLIC OString DateToOString(const Date &rDate)
#define TOOLS_DLLPUBLIC
Definition: toolsdllapi.h:28