[前][次][番号順一覧][スレッド一覧]

ruby-changes:24456

From: drbrain <ko1@a...>
Date: Tue, 24 Jul 2012 07:24:02 +0900 (JST)
Subject: [ruby-changes:24456] drbrain:r36507 (trunk): * time.c (time_sec): Updated description of leap seconds for accuracy.

drbrain	2012-07-24 07:23:41 +0900 (Tue, 24 Jul 2012)

  New Revision: 36507

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36507

  Log:
    * time.c (time_sec):  Updated description of leap seconds for accuracy.
      Based on patch by Marcus Stollsteimer.  [Bug #6749]

  Modified files:
    trunk/ChangeLog
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 36506)
+++ time.c	(revision 36507)
@@ -3883,10 +3883,12 @@
  *  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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36506)
+++ ChangeLog	(revision 36507)
@@ -1,3 +1,8 @@
+Tue Jul 24 07:22:58 2012  Eric Hodel  <drbrain@s...>
+
+	* time.c (time_sec):  Updated description of leap seconds for accuracy.
+	  Based on patch by Marcus Stollsteimer.  [Bug #6749]
+
 Tue Jul 24 07:03:11 2012  Eric Hodel  <drbrain@s...>
 
 	* string.c (rb_str_sub):  Fixed wording of documentation to match the

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]