A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classicu_1_1DateInterval.html below:

ICU 77.1: icu::DateInterval Class Reference

This class represents a date interval. More...

#include <dtintrv.h>

This class represents a date interval.

It is a pair of UDate representing from UDate 1 to UDate 2.

Stable:
ICU 4.0

Definition at line 36 of file dtintrv.h.

◆ DateInterval() [1/2] icu::DateInterval::DateInterval ( UDate  fromDate, UDate  toDate  )

Construct a DateInterval given a from date and a to date.

Parameters
fromDate The from date in date interval. toDate The to date in date interval.
Stable:
ICU 4.0
◆ ~DateInterval() virtual icu::DateInterval::~DateInterval ( ) virtual ◆ DateInterval() [2/2] icu::DateInterval::DateInterval ( const DateIntervalother ) ◆ clone()

clone this object.

The caller owns the result and should delete it when done.

Returns
a cloned DateInterval
Stable:
ICU 4.0
◆ getDynamicClassID() virtual UClassID icu::DateInterval::getDynamicClassID ( ) const overridevirtual

Returns a unique class ID POLYMORPHICALLY.

Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.

Returns
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
Stable:
ICU 4.0

Reimplemented from icu::UObject.

◆ getFromDate() UDate icu::DateInterval::getFromDate ( ) const inline

Get the from date.

Returns
the from date in dateInterval.
Stable:
ICU 4.0

Definition at line 142 of file dtintrv.h.

◆ getStaticClassID() static UClassID icu::DateInterval::getStaticClassID ( ) static

Return the class ID for this class.

This is useful only for comparing to a return value from getDynamicClassID(). For example:

.   Base* polymorphic_pointer = createPolymorphicObject();
.   if (polymorphic_pointer->getDynamicClassID() ==
.       derived::getStaticClassID()) ...
Returns
The class ID for all objects of this class.
Stable:
ICU 4.0
◆ getToDate() UDate icu::DateInterval::getToDate ( ) const inline

Get the to date.

Returns
the to date in dateInterval.
Stable:
ICU 4.0

Definition at line 148 of file dtintrv.h.

◆ operator!=() bool icu::DateInterval::operator!= ( const DateIntervalother ) const inline

Non-equality operator.

Returns
true if the two DateIntervals are not the same
Stable:
ICU 4.0

Definition at line 154 of file dtintrv.h.

◆ operator=()

Default assignment operator.

Stable:
ICU 4.0
◆ operator==() virtual bool icu::DateInterval::operator== ( const DateIntervalother ) const virtual

Equality operator.

Returns
true if the two DateIntervals are the same
Stable:
ICU 4.0

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4