Base Framework
Public Member Functions | List of all members
DateFormatSet Class Reference

#include <base/string/Locale.h>

Inherits Object.

Inherited by Locale.

Public Member Functions

 DateFormatSet () noexcept
 
char getDateSeparator () const noexcept
 
char getTimeSeparator () const noexcept
 
String getShortNameOfWeekday (unsigned int weekday) const
 
String getLongNameOfWeekday (unsigned int weekday) const
 
String getShortNameOfMonth (unsigned int month) const
 
String getLongNameOfMonth (unsigned int month) const
 
const StringgetPM () const noexcept
 
const StringgetAM () const noexcept
 
const StringgetShortDateFormat () const noexcept
 
void setShortDateFormat (const String &format) noexcept
 
const StringgetMediumDateFormat () const noexcept
 
void setMediumDateFormat (const String &format) noexcept
 
const StringgetLongDateFormat () const noexcept
 
void setLongDateFormat (const String &format) noexcept
 
const StringgetShortTimeFormat () const noexcept
 
void setShortTimeFormat (const String &format) noexcept
 
const StringgetMediumTimeFormat () const noexcept
 
void setMediumTimeFormat (const String &format) noexcept
 
const StringgetLongTimeFormat () const noexcept
 
void setLongTimeFormat (const String &format) noexcept
 

Detailed Description

Date and time formatting.

Constructor & Destructor Documentation

◆ DateFormatSet()

DateFormatSet::DateFormatSet ( )
noexcept

Initializes object with POSIX settings.

Member Function Documentation

◆ getAM()

const String& DateFormatSet::getAM ( ) const
inlinenoexcept

Returns AM.

◆ getDateSeparator()

char DateFormatSet::getDateSeparator ( ) const
inlinenoexcept

Returns date separator.

◆ getLongDateFormat()

const String& DateFormatSet::getLongDateFormat ( ) const
inlinenoexcept

Returns short date format.

◆ getLongNameOfMonth()

String DateFormatSet::getLongNameOfMonth ( unsigned int  month) const
inline

Returns long name of month.

◆ getLongNameOfWeekday()

String DateFormatSet::getLongNameOfWeekday ( unsigned int  weekday) const
inline

Returns long name of weekday.

◆ getLongTimeFormat()

const String& DateFormatSet::getLongTimeFormat ( ) const
inlinenoexcept

Returns long time format.

◆ getMediumTimeFormat()

const String& DateFormatSet::getMediumTimeFormat ( ) const
inlinenoexcept

Returns medium time format.

◆ getPM()

const String& DateFormatSet::getPM ( ) const
inlinenoexcept

Returns PM.

◆ getShortDateFormat()

const String& DateFormatSet::getShortDateFormat ( ) const
inlinenoexcept

Returns short date format.

◆ getShortNameOfMonth()

String DateFormatSet::getShortNameOfMonth ( unsigned int  month) const
inline

Returns short name of month.

◆ getShortNameOfWeekday()

String DateFormatSet::getShortNameOfWeekday ( unsigned int  weekday) const
inline

Returns short name of weekday.

◆ getShortTimeFormat()

const String& DateFormatSet::getShortTimeFormat ( ) const
inlinenoexcept

Returns short time format.

◆ getTimeSeparator()

char DateFormatSet::getTimeSeparator ( ) const
inlinenoexcept

Returns time separator.

◆ setLongDateFormat()

void DateFormatSet::setLongDateFormat ( const String format)
noexcept

Returns long date format.

◆ setLongTimeFormat()

void DateFormatSet::setLongTimeFormat ( const String format)
noexcept

Sets long time format.

◆ setMediumDateFormat()

void DateFormatSet::setMediumDateFormat ( const String format)
noexcept

Returns medium date format.

◆ setMediumTimeFormat()

void DateFormatSet::setMediumTimeFormat ( const String format)
noexcept

Sets medium time format.

◆ setShortDateFormat()

void DateFormatSet::setShortDateFormat ( const String format)
noexcept

Sets short date format.

◆ setShortTimeFormat()

void DateFormatSet::setShortTimeFormat ( const String format)
noexcept

Sets short time format.