summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-23 22:23:41 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-23 22:23:41 +0000
commit0d8bc52593328d3f9adaa67c79fdcff723534685 (patch)
treec41b14af0861037f68efdfc8444d77c9ca9cd3a4 /time.c
parent00730b5e499fa4567263c618a58180a5ab1bff7f (diff)
* time.c (time_sec): Updated description of leap seconds for accuracy.
Based on patch by Marcus Stollsteimer. [Bug #6749] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/time.c b/time.c
index b27ad95b92..a52dffddb5 100644
--- a/time.c
+++ b/time.c
@@ -3883,10 +3883,12 @@ time_round(int argc, VALUE *argv, VALUE time)
* call-seq:
* time.sec -> fixnum
*
- * Returns the second of the minute (0..60)<em>[Yes, seconds really can
- * range from zero to 60. This allows the system to inject leap seconds
- * every now and then to correct for the fact that years are not really
- * a convenient number of hours long.]</em> for <i>time</i>.
+ * Returns the second of the minute (0..60) for <i>time</i>.
+ * <em>[Yes, seconds really can range from zero to 60. This allows the
+ * system to inject leap seconds every now and then to correct for the
+ * fact that UTC is based on solar time so days are not exactly 86400
+ * seconds or 24 hours long. See http://en.wikipedia.org/wiki/Leap_second
+ * for further details.]</em>
*
* t = Time.now #=> 2007-11-19 08:25:02 -0600
* t.sec #=> 2