TDLib
Loading...
Searching...
No Matches
dateTimeFormattingTypeAbsolute Class Referencefinal

Inherits DateTimeFormattingType.

Description

The date and time must be shown as absolute timestamps.

Public Member Functions

 dateTimeFormattingTypeAbsolute ()
 dateTimeFormattingTypeAbsolute (object_ptr< DateTimePartPrecision > &&time_precision_, object_ptr< DateTimePartPrecision > &&date_precision_, bool show_day_of_week_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

object_ptr< DateTimePartPrecision > date_precision_
 The precision with which the date is shown.
bool show_day_of_week_
 True, if the day of week must be shown.
object_ptr< DateTimePartPrecision > time_precision_
 The precision with which hours, minutes and seconds are shown.

Static Public Attributes

static const std::int32_t ID = 47463317
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ dateTimeFormattingTypeAbsolute() [1/2]

dateTimeFormattingTypeAbsolute ( )

The date and time must be shown as absolute timestamps.

◆ dateTimeFormattingTypeAbsolute() [2/2]

dateTimeFormattingTypeAbsolute ( object_ptr< DateTimePartPrecision > && time_precision_,
object_ptr< DateTimePartPrecision > && date_precision_,
bool show_day_of_week_ )

The date and time must be shown as absolute timestamps.

Parameters
[in]time_precision_The precision with which hours, minutes and seconds are shown.
[in]date_precision_The precision with which the date is shown.
[in]show_day_of_week_True, if the day of week must be shown.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: