Hazelcast C++ Client
Hazelcast C++ Client Library
local_time.h
1 /*
2  * Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include "hazelcast/util/export.h"
19 
20 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
21 #pragma warning(push)
22 #pragma warning(disable : 4251) // for dll export
23 #endif
24 
25 namespace hazelcast {
26 namespace client {
52 struct HAZELCAST_API local_time
53 {
57  uint8_t hours;
61  uint8_t minutes;
65  uint8_t seconds;
69  int32_t nanos;
70 };
71 
72 bool HAZELCAST_API
73 operator==(const local_time& lhs, const local_time& rhs);
74 
75 bool HAZELCAST_API
76 operator<(const local_time& lhs, const local_time& rhs);
77 } // namespace client
78 } // namespace hazelcast
79 namespace std {
80 template<>
81 struct HAZELCAST_API hash<hazelcast::client::local_time>
82 {
83  std::size_t operator()(const hazelcast::client::local_time& f) const;
84 };
85 } // namespace std
86 
87 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
88 #pragma warning(pop)
89 #endif
A time without a time-zone in the ISO-8601 calendar system, such as.
Definition: local_time.h:53
uint8_t hours
the hour-of-day to represent, from 0 to 23
Definition: local_time.h:57
uint8_t seconds
the second-of-minute to represent, from 0 to 59
Definition: local_time.h:65
int32_t nanos
the nanosecond-of-second to represent, from 0 to 999,999,999
Definition: local_time.h:69
uint8_t minutes
the minute-of-hour to represent, from 0 to 59
Definition: local_time.h:61