]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/dtintrv.cpp
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*******************************************************************************
4 * Copyright (C) 2008, International Business Machines Corporation and
5 * others. All Rights Reserved.
6 *******************************************************************************
10 *******************************************************************************
15 #include "unicode/dtintrv.h"
20 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval
)
22 //DateInterval::DateInterval(){}
25 DateInterval::DateInterval(UDate from
, UDate to
)
31 DateInterval::~DateInterval(){}
34 DateInterval::DateInterval(const DateInterval
& other
)
41 DateInterval::operator=(const DateInterval
& other
) {
42 if ( this != &other
) {
43 fromDate
= other
.fromDate
;
44 toDate
= other
.toDate
;
51 DateInterval::clone() const {
52 return new DateInterval(*this);
57 DateInterval::operator==(const DateInterval
& other
) const {
58 return ( fromDate
== other
.fromDate
&& toDate
== other
.toDate
);