File tree Expand file tree Collapse file tree 4 files changed +0
-130
lines changed
libcxx/time/time.zone/time.zone.timezone/time.zone.members
std/time/time.zone/time.zone.timezone/time.zone.members Expand file tree Collapse file tree 4 files changed +0
-130
lines changed Original file line number Diff line number Diff line change @@ -129,24 +129,6 @@ class _LIBCPP_AVAILABILITY_TZDB time_zone {
129
129
return {};
130
130
}
131
131
132
- template <class _Duration >
133
- [[nodiscard]] _LIBCPP_HIDE_FROM_ABI local_time<common_type_t <_Duration, seconds>>
134
- to_local (const sys_time<_Duration>& __time) const {
135
- using _Dp = common_type_t <_Duration, seconds>;
136
-
137
- sys_info __info = get_info (__time);
138
-
139
- _LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN (
140
- __info.offset >= chrono::seconds{0 } || __time.time_since_epoch () >= _Dp::min () - __info.offset ,
141
- " cannot convert the system time; it would be before the minimum local clock value" );
142
-
143
- _LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN (
144
- __info.offset <= chrono::seconds{0 } || __time.time_since_epoch () <= _Dp::max () - __info.offset ,
145
- " cannot convert the system time; it would be after the maximum local clock value" );
146
-
147
- return local_time<_Dp>{__time.time_since_epoch () + __info.offset };
148
- }
149
-
150
132
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI const __impl& __implementation () const noexcept { return *__impl_; }
151
133
152
134
private:
Original file line number Diff line number Diff line change @@ -778,10 +778,6 @@ class time_zone {
778
778
template<class Duration>
779
779
sys_time<common_type_t<Duration, seconds>>
780
780
to_sys(const local_time<Duration>& tp, choose z) const;
781
-
782
- template<class Duration>
783
- local_time<common_type_t<Duration, seconds>>
784
- to_local(const sys_time<Duration>& tp) const;
785
781
};
786
782
bool operator==(const time_zone& x, const time_zone& y) noexcept; // C++20
787
783
strong_ordering operator<=>(const time_zone& x, const time_zone& y) noexcept; // C++20
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments