summaryrefslogtreecommitdiff
path: root/absl/time/time.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2018-06-20 06:25:23 -0700
committerGravatar Shaindel Schwartz <shaindel@google.com>2018-06-20 10:15:31 -0400
commit6c7de165d1c82684359ccb630bb5f83263fa5ebc (patch)
treef271bc0005ad42773cc0140100699b8bfbaea124 /absl/time/time.h
parente5be80532b5d998813f9db952d2cc5401b1532df (diff)
Project import generated by Copybara.20180600
GitOrigin-RevId: d89dba27e35462d7457121b978fd79214205e686 Change-Id: I0eae80578a93a580820bc90d42e6b42faf7fde0a
Diffstat (limited to 'absl/time/time.h')
-rw-r--r--absl/time/time.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/absl/time/time.h b/absl/time/time.h
index 99c12bbd..3b5739ff 100644
--- a/absl/time/time.h
+++ b/absl/time/time.h
@@ -64,9 +64,11 @@
#include <utility>
#include "absl/base/port.h" // Needed for string vs std::string
+#include "absl/strings/string_view.h"
#include "absl/time/internal/cctz/include/cctz/time_zone.h"
namespace absl {
+inline namespace lts_2018_06_20 {
class Duration; // Defined below
class Time; // Defined below
@@ -491,9 +493,6 @@ inline std::ostream& operator<<(std::ostream& os, Duration d) {
// `ZeroDuration()`. Parses "inf" and "-inf" as +/- `InfiniteDuration()`.
bool ParseDuration(const std::string& dur_string, Duration* d);
-// Flag Support
-// TODO(absl-team): Remove once dependencies are removed.
-
// ParseFlag()
//
bool ParseFlag(const std::string& text, Duration* dst, std::string* error);
@@ -993,8 +992,6 @@ bool ParseTime(const std::string& format, const std::string& input, Time* time,
bool ParseTime(const std::string& format, const std::string& input, TimeZone tz,
Time* time, std::string* err);
-// TODO(absl-team): Remove once dependencies are removed.
-
// ParseFlag()
// UnparseFlag()
//
@@ -1335,6 +1332,7 @@ constexpr Time FromTimeT(time_t t) {
return time_internal::FromUnixDuration(Seconds(t));
}
+} // inline namespace lts_2018_06_20
} // namespace absl
#endif // ABSL_TIME_TIME_H_