summaryrefslogtreecommitdiff
path: root/absl/time/internal/cctz/src/time_zone_libc.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-06-28 08:11:49 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-06-28 08:12:34 -0700
commit17014064a4ea367952eb4a595796f48c688c1467 (patch)
tree73027b56fab06c316693049e19010e774fb680ed /absl/time/internal/cctz/src/time_zone_libc.h
parentd65595c8dd994b47b7fdfdf9427bb546c577467b (diff)
Rollback of CCTZ update due to crash in clang ObjcLink.
PiperOrigin-RevId: 544060862 Change-Id: I6ca631385826f6e10f6c3eeec1af532402d0b532
Diffstat (limited to 'absl/time/internal/cctz/src/time_zone_libc.h')
-rw-r--r--absl/time/internal/cctz/src/time_zone_libc.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/absl/time/internal/cctz/src/time_zone_libc.h b/absl/time/internal/cctz/src/time_zone_libc.h
index 2d6fa686..1da9039a 100644
--- a/absl/time/internal/cctz/src/time_zone_libc.h
+++ b/absl/time/internal/cctz/src/time_zone_libc.h
@@ -27,10 +27,10 @@ namespace cctz {
// A time zone backed by gmtime_r(3), localtime_r(3), and mktime(3),
// and which therefore only supports UTC and the local time zone.
+// TODO: Add support for fixed offsets from UTC.
class TimeZoneLibC : public TimeZoneIf {
public:
- // Factory.
- static std::unique_ptr<TimeZoneLibC> Make(const std::string& name);
+ explicit TimeZoneLibC(const std::string& name);
// TimeZoneIf implementations.
time_zone::absolute_lookup BreakTime(
@@ -44,10 +44,6 @@ class TimeZoneLibC : public TimeZoneIf {
std::string Description() const override;
private:
- explicit TimeZoneLibC(const std::string& name);
- TimeZoneLibC(const TimeZoneLibC&) = delete;
- TimeZoneLibC& operator=(const TimeZoneLibC&) = delete;
-
const bool local_; // localtime or UTC
};