Skip to content

Commit dfc2520

Browse files
committed
[doc] update Time document.
1 parent fd882fb commit dfc2520

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

timev.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,21 @@
4747
#
4848
# == \Time Internal Representation
4949
#
50-
# Conceptually, Time class uses a Rational value to represent the number of
51-
# nanoseconds from _Epoch_, 1970-01-01 00:00:00 UTC.
50+
# Conceptually, Time class uses a rational value to represent the number of
51+
# seconds from _Epoch_, 1970-01-01 00:00:00 UTC.
5252
# There are no boundary or resolution limitations.
5353
# The value can be obtained using Time#to_r.
5454
#
5555
# The Time class always uses the Gregorian calendar.
5656
# I.e. the proleptic Gregorian calendar is used.
5757
# Other calendars, such as Julian calendar, are not supported.
5858
#
59-
# The implementation uses a signed 63 bit integer or Integer (Bignum) to
60-
# represent the Rational values if possible.
61-
# (The signed 63 bit integers are used regardless of 32 and 64 bit environments.)
59+
# The implementation uses a signed 63 bit integer, Integer (Bignum) object or
60+
# Ratoinal object to represent a rational value.
61+
# (The signed 63 bit integer is used regardless of 32 and 64 bit environments.)
62+
# The value represents the number of nanoseconds from _Epoch_.
6263
# The signed 63 bit integer can represent 1823-11-12 to 2116-02-20.
63-
# When Integer or Rational is used (before 1823, after 2116, under
64+
# When Integer or Rational object is used (before 1823, after 2116, under
6465
# nanosecond), Time works slower than when the signed 63 bit integer is used.
6566
#
6667
# Ruby uses the C function +localtime+ and +gmtime+ to map between the number

0 commit comments

Comments
 (0)