LibreOffice Module tools (master) 1
Functions
datetimeutils.cxx File Reference
#include <tools/datetimeutils.hxx>
#include <rtl/strbuf.hxx>
Include dependency graph for datetimeutils.cxx:

Go to the source code of this file.

Functions

static void lcl_AppendTwoDigits (OStringBuffer &rBuffer, sal_Int32 nNum)
 Append the number as 2-digit when less than 10. More...
 
OString DateTimeToOString (const DateTime &rDateTime)
 
OString DateToOString (const Date &rDate)
 
OString DateToDDMMYYYYOString (const Date &rDate)
 
std::ostream & operator<< (std::ostream &os, const Date &rDate)
 

Function Documentation

◆ DateTimeToOString()

OString DateTimeToOString ( const DateTime rDateTime)

◆ DateToDDMMYYYYOString()

OString DateToDDMMYYYYOString ( const Date rDate)

◆ DateToOString()

OString DateToOString ( const Date rDate)

Definition at line 58 of file datetimeutils.cxx.

References DateTimeToOString(), and tools::Time::EMPTY.

◆ lcl_AppendTwoDigits()

static void lcl_AppendTwoDigits ( OStringBuffer &  rBuffer,
sal_Int32  nNum 
)
static

Append the number as 2-digit when less than 10.

Definition at line 15 of file datetimeutils.cxx.

Referenced by DateTimeToOString(), and DateToDDMMYYYYOString().

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Date rDate 
)

Definition at line 78 of file datetimeutils.cxx.

References Date::GetDay(), Date::GetMonth(), and Date::GetYear().