1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update Time documentation

This commit is contained in:
Burdette Lamar 2021-04-25 15:51:31 -05:00 committed by Jeremy Evans
parent 5a451c4b1f
commit 6ee55455a8
10 changed files with 232 additions and 141 deletions

7
doc/time/in.rdoc Normal file
View file

@ -0,0 +1,7 @@
- <tt>in: zone</tt>: a timezone _zone_, which may be:
- A string offset from UTC.
- A single letter offset from UTC, in the range <tt>'A'..'Z'</tt>,
<tt>'J'</tt> (the so-called military timezone) excluded.
- An integer number of seconds.
- A timezone object;
see {Timezone Argument}[#class-Time-label-Timezone+Argument] for details.

8
doc/time/mon-min.rdoc Normal file
View file

@ -0,0 +1,8 @@
- +month+: a month value, which may be:
- An integer month in the range <tt>1..12</tt>.
- A 3-character string that matches regular expression
<tt>/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/i</tt>.
- +day+: an integer day in the range <tt>1..31</tt>
(less than 31 for some months).
- +hour+: an integer hour in the range <tt>0..23</tt>.
- +min+: an integer minute in the range <tt>0..59</tt>.

2
doc/time/msec.rdoc Normal file
View file

@ -0,0 +1,2 @@
- +msec+ is the number of milliseconds (Integer, Float, or Rational)
in the range <tt>0..1000</tt>.

2
doc/time/nsec.rdoc Normal file
View file

@ -0,0 +1,2 @@
- +nsec+ is the number of nanoseconds (Integer, Float, or Rational)
in the range <tt>0..1000000000</tt>.

2
doc/time/sec.rdoc Normal file
View file

@ -0,0 +1,2 @@
- +sec+ is the number of seconds (Integer, Float, or Rational)
in the range <tt>0..60</tt>.

1
doc/time/sec_i.rdoc Normal file
View file

@ -0,0 +1 @@
- +isec_i+ is the integer number of seconds in the range <tt>0..60</tt>.

2
doc/time/usec.rdoc Normal file
View file

@ -0,0 +1,2 @@
- +usec+ is the number of microseconds (Integer, Float, or Rational)
in the range <tt>0..1000000</tt>.

1
doc/time/year.rdoc Normal file
View file

@ -0,0 +1 @@
- +year+: an integer year.