summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rickb777/date/period/doc.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-03-15 22:43:46 +0000
committerWim <wim@42.be>2020-03-22 00:02:48 +0100
commit76e5fe5a87d7e60919075f96eee599f3c6255a9f (patch)
treeaf3181ad6aadaea02069473a3718a827be888426 /vendor/github.com/rickb777/date/period/doc.go
parent802c80f40c709ba4967de317e40a8d6abe57f6be (diff)
downloadmatterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.gz
matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.bz2
matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.zip
Update vendor yaegashi/msgraph.go to v0.1.2 (2)
Diffstat (limited to 'vendor/github.com/rickb777/date/period/doc.go')
-rw-r--r--vendor/github.com/rickb777/date/period/doc.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/github.com/rickb777/date/period/doc.go b/vendor/github.com/rickb777/date/period/doc.go
new file mode 100644
index 00000000..c8a57b4a
--- /dev/null
+++ b/vendor/github.com/rickb777/date/period/doc.go
@@ -0,0 +1,44 @@
+// Copyright 2016 Rick Beton. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Package period provides functionality for periods of time using ISO-8601 conventions.
+// This deals with years, months, weeks/days, hours, minutes and seconds.
+//
+// Because of the vagaries of calendar systems, the meaning of year lengths, month lengths
+// and even day lengths depends on context. So a period is not necessarily a fixed duration
+// of time in terms of seconds.
+//
+// See https://en.wikipedia.org/wiki/ISO_8601#Durations
+//
+// Example representations:
+//
+// * "P2Y" is two years;
+//
+// * "P6M" is six months;
+//
+// * "P4D" is four days;
+//
+// * "P1W" is one week (seven days);
+//
+// * "PT3H" is three hours.
+//
+// * "PT20M" is twenty minutes.
+//
+// * "PT30S" is thirty seconds.
+//
+// These can be combined, for example:
+//
+// * "P3Y6M4W1D" is three years, 6 months, 4 weeks and one day.
+//
+// * "P2DT12H" is 2 days and 12 hours.
+//
+// Also, decimal fractions are supported to one decimal place. To comply with
+// the standard, only the last non-zero component is allowed to have a fraction.
+// For example
+//
+// * "P2.5Y" is 2.5 years.
+//
+// * "PT12M7.5S" is 12 minutes and 7.5 seconds.
+//
+package period