11#include <rtl/strbuf.hxx>
17 if ( nNum < 0 || nNum > 99 )
19 rBuffer.append(
"00" );
24 rBuffer.append(
'0' );
26 rBuffer.append( nNum );
55 return aBuffer.makeStringAndClear();
75 return aBuffer.makeStringAndClear();
Represents a date in the proleptic Gregorian calendar.
sal_Int16 GetYear() const
sal_uInt16 GetDay() const
sal_uInt16 GetMonth() const
OString DateTimeToOString(const DateTime &rDateTime)
static void lcl_AppendTwoDigits(OStringBuffer &rBuffer, sal_Int32 nNum)
Append the number as 2-digit when less than 10.
OString DateToOString(const Date &rDate)
std::ostream & operator<<(std::ostream &os, const Date &rDate)
OString DateToDDMMYYYYOString(const Date &rDate)
std::unique_ptr< char[]> aBuffer