summaryrefslogtreecommitdiff
path: root/absl/time/time.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2017-10-03 22:13:32 -0700
committerGravatar vslashg <gfalcon@google.com>2017-10-04 10:18:49 -0400
commitcc4bed2d74f7c8717e31f9579214ab52a9c9c610 (patch)
tree01f038c00ed597e22dbe342ce3b077ad27ace4aa /absl/time/time.h
parent9c4178d13e84acf3f0d1b8aeee1f67862aeeadc9 (diff)
Changes imported from Abseil "staging" branch:
- cdcf33b6176a51b6b9bcdf1032b4aa407a9a6990 Clarify that "0" without a suffix parses to ZeroDuration(... by Abseil Team <absl-team@google.com> - 65c8997d5a3a4cff63f1dc8a72dcee89c456a17b spelling 'available' by Abseil Team <absl-team@google.com> - 1a2b51427c38d471a3f2b8806f015d1598877559 Clean up a comment by Abseil Team <absl-team@google.com> - ea1ae153fff759a60fbf946f2865f14253e21289 Fix typo in string_view comments. by Abseil Team <absl-team@google.com> - 94d7e6d9e9e379e352aa3cc5e37ac4ffd81db234 Replace x64_windows_msvc with x64_windows (bazel default)... by Xiaoyi Zhang <zhangxy@google.com> GitOrigin-RevId: cdcf33b6176a51b6b9bcdf1032b4aa407a9a6990 Change-Id: I3ccdcf1b8c5c08997e68cb1f336b02f003a3a72d
Diffstat (limited to 'absl/time/time.h')
-rw-r--r--absl/time/time.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/absl/time/time.h b/absl/time/time.h
index 17dbfa6f..093f168d 100644
--- a/absl/time/time.h
+++ b/absl/time/time.h
@@ -477,11 +477,11 @@ inline std::ostream& operator<<(std::ostream& os, Duration d) {
// ParseDuration()
//
-// Parses a duration std::string consisting of a possibly signed sequence
-// of decimal numbers, each with an optional fractional part and a
-// unit suffix. The valid suffixes are "ns", "us" "ms", "s", "m",
-// and "h". Simple examples include "300ms", "-1.5h", and "2h45m".
-// Parses "inf" and "-inf" as +/- `InfiniteDuration()`.
+// Parses a duration std::string consisting of a possibly signed sequence of
+// decimal numbers, each with an optional fractional part and a unit
+// suffix. The valid suffixes are "ns", "us" "ms", "s", "m", and "h".
+// Simple examples include "300ms", "-1.5h", and "2h45m". Parses "0" as
+// `ZeroDuration()`. Parses "inf" and "-inf" as +/- `InfiniteDuration()`.
bool ParseDuration(const std::string& dur_string, Duration* d);
// Flag Support