From 6ee55455a88d0f3542497b429d496abaf01fd353 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Sun, 25 Apr 2021 15:51:31 -0500 Subject: Update Time documentation --- doc/time/in.rdoc | 7 +++++++ doc/time/mon-min.rdoc | 8 ++++++++ doc/time/msec.rdoc | 2 ++ doc/time/nsec.rdoc | 2 ++ doc/time/sec.rdoc | 2 ++ doc/time/sec_i.rdoc | 1 + doc/time/usec.rdoc | 2 ++ doc/time/year.rdoc | 1 + 8 files changed, 25 insertions(+) create mode 100644 doc/time/in.rdoc create mode 100644 doc/time/mon-min.rdoc create mode 100644 doc/time/msec.rdoc create mode 100644 doc/time/nsec.rdoc create mode 100644 doc/time/sec.rdoc create mode 100644 doc/time/sec_i.rdoc create mode 100644 doc/time/usec.rdoc create mode 100644 doc/time/year.rdoc (limited to 'doc') diff --git a/doc/time/in.rdoc b/doc/time/in.rdoc new file mode 100644 index 0000000000..f47db76a35 --- /dev/null +++ b/doc/time/in.rdoc @@ -0,0 +1,7 @@ +- in: zone: a timezone _zone_, which may be: + - A string offset from UTC. + - A single letter offset from UTC, in the range 'A'..'Z', + 'J' (the so-called military timezone) excluded. + - An integer number of seconds. + - A timezone object; + see {Timezone Argument}[#class-Time-label-Timezone+Argument] for details. diff --git a/doc/time/mon-min.rdoc b/doc/time/mon-min.rdoc new file mode 100644 index 0000000000..5bd430c74a --- /dev/null +++ b/doc/time/mon-min.rdoc @@ -0,0 +1,8 @@ +- +month+: a month value, which may be: + - An integer month in the range 1..12. + - A 3-character string that matches regular expression + /jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/i. +- +day+: an integer day in the range 1..31 + (less than 31 for some months). +- +hour+: an integer hour in the range 0..23. +- +min+: an integer minute in the range 0..59. diff --git a/doc/time/msec.rdoc b/doc/time/msec.rdoc new file mode 100644 index 0000000000..ce5d1e6145 --- /dev/null +++ b/doc/time/msec.rdoc @@ -0,0 +1,2 @@ +- +msec+ is the number of milliseconds (Integer, Float, or Rational) + in the range 0..1000. diff --git a/doc/time/nsec.rdoc b/doc/time/nsec.rdoc new file mode 100644 index 0000000000..a2dfe2d608 --- /dev/null +++ b/doc/time/nsec.rdoc @@ -0,0 +1,2 @@ +- +nsec+ is the number of nanoseconds (Integer, Float, or Rational) + in the range 0..1000000000. diff --git a/doc/time/sec.rdoc b/doc/time/sec.rdoc new file mode 100644 index 0000000000..049c712110 --- /dev/null +++ b/doc/time/sec.rdoc @@ -0,0 +1,2 @@ +- +sec+ is the number of seconds (Integer, Float, or Rational) + in the range 0..60. diff --git a/doc/time/sec_i.rdoc b/doc/time/sec_i.rdoc new file mode 100644 index 0000000000..99c8eddc65 --- /dev/null +++ b/doc/time/sec_i.rdoc @@ -0,0 +1 @@ +- +isec_i+ is the integer number of seconds in the range 0..60. diff --git a/doc/time/usec.rdoc b/doc/time/usec.rdoc new file mode 100644 index 0000000000..bb5a46419a --- /dev/null +++ b/doc/time/usec.rdoc @@ -0,0 +1,2 @@ +- +usec+ is the number of microseconds (Integer, Float, or Rational) + in the range 0..1000000. diff --git a/doc/time/year.rdoc b/doc/time/year.rdoc new file mode 100644 index 0000000000..2222b830d7 --- /dev/null +++ b/doc/time/year.rdoc @@ -0,0 +1 @@ +- +year+: an integer year. -- cgit v1.2.3