From 9f469ad187e80854c9b3aaffa2feca8ad5b77fd3 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 7 Jun 2024 00:25:38 +0900 Subject: [PATCH] [DOC] Time uses the proleptic Gregorian calendar. --- timev.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/timev.rb b/timev.rb index a75f74d517..ad8b16a0e2 100644 --- a/timev.rb +++ b/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).