mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Time uses the proleptic Gregorian calendar.
This commit is contained in:
parent
78d7b470ec
commit
9f469ad187
1 changed files with 4 additions and 0 deletions
4
timev.rb
4
timev.rb
|
@ -63,6 +63,10 @@
|
|||
# due to the C types "time_t" and "struct tm".
|
||||
# If that limit is exceeded, Ruby extrapolates the localtime function.
|
||||
#
|
||||
# The Time class always uses the Gregorian calendar.
|
||||
# I.e. the proleptic Gregorian calendar is used.
|
||||
# Other calendars, such as Julian calendar, are not supported.
|
||||
#
|
||||
# "time_t" can represent 1901-12-14 to 2038-01-19 if it is 32 bit signed integer,
|
||||
# -292277022657-01-27 to 292277026596-12-05 if it is 64 bit signed integer.
|
||||
# However "localtime" on some platforms doesn't supports negative time_t (before 1970).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue