Path: blob/master/thirdparty/icu4c/common/dtintrv.cpp
9902 views
// © 2016 and later: Unicode, Inc. and others.1// License & terms of use: http://www.unicode.org/copyright.html2/*******************************************************************************3* Copyright (C) 2008, International Business Machines Corporation and4* others. All Rights Reserved.5*******************************************************************************6*7* File DTINTRV.CPP8*9*******************************************************************************10*/11121314#include "unicode/dtintrv.h"151617U_NAMESPACE_BEGIN1819UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval)2021//DateInterval::DateInterval(){}222324DateInterval::DateInterval(UDate from, UDate to)25: fromDate(from),26toDate(to)27{}282930DateInterval::~DateInterval(){}313233DateInterval::DateInterval(const DateInterval& other)34: UObject(other) {35*this = other;36}373839DateInterval&40DateInterval::operator=(const DateInterval& other) {41if ( this != &other ) {42fromDate = other.fromDate;43toDate = other.toDate;44}45return *this;46}474849DateInterval*50DateInterval::clone() const {51return new DateInterval(*this);52}535455bool56DateInterval::operator==(const DateInterval& other) const {57return ( fromDate == other.fromDate && toDate == other.toDate );58}596061U_NAMESPACE_END62636465