1 /*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "zone_offset_transition.h"
16
17 #include "i18n_hilog.h"
18 #include "locale_config.h"
19 #include "zone_rules.h"
20
21 namespace OHOS {
22 namespace Global {
23 namespace I18n {
ZoneOffsetTransition(double time,int32_t offsetBefore,int32_t offsetAfter)24 ZoneOffsetTransition::ZoneOffsetTransition(double time, int32_t offsetBefore, int32_t offsetAfter)
25 : time(time), offsetBefore(offsetBefore), offsetAfter(offsetAfter)
26 {}
27
ZoneOffsetTransition()28 ZoneOffsetTransition::ZoneOffsetTransition()
29 {}
30
~ZoneOffsetTransition()31 ZoneOffsetTransition::~ZoneOffsetTransition()
32 {}
33
GetMilliseconds()34 double ZoneOffsetTransition::GetMilliseconds()
35 {
36 return time;
37 }
38
GetOffsetAfter()39 int32_t ZoneOffsetTransition::GetOffsetAfter()
40 {
41 return offsetAfter;
42 }
43
GetOffsetBefore()44 int32_t ZoneOffsetTransition::GetOffsetBefore()
45 {
46 return offsetBefore;
47 }
48 } // namespace I18n
49 } // namespace Global
50 } // namespace OHOS
51