ruby-changes:23548
From: tadf <ko1@a...>
Date: Wed, 9 May 2012 06:25:51 +0900 (JST)
Subject: [ruby-changes:23548] tadf:r35599 (trunk): * ext/date/date_core.c: reverted.
tadf 2012-05-09 06:25:34 +0900 (Wed, 09 May 2012) New Revision: 35599 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35599 Log: * ext/date/date_core.c: reverted. Modified files: trunk/ChangeLog trunk/ext/date/date_core.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35598) +++ ChangeLog (revision 35599) @@ -1,3 +1,7 @@ +Wed May 9 06:23:33 2012 Tadayoshi Funaba <tadf@d...> + + * ext/date/date_core.c: reverted. + Wed May 9 04:31:26 2012 Masatoshi SEKI <m_seki@m...> * lib/rinda/ring.rb (lookup_ring_any): fix Rinda::RingFinger.primary Index: ext/date/date_core.c =================================================================== --- ext/date/date_core.c (revision 35598) +++ ext/date/date_core.c (revision 35599) @@ -9234,42 +9234,31 @@ negative_inf = -INFINITY; /* - * The Date and DateTime classes provide methods for storing, comparing, transforming, and operating on values of date and time. Date objects store only the date (e.g. 1987-06-29), while DateTime objects store both the date and time (e.g. 1984-02-09 05:32:12). + * date and datetime class - Tadayoshi Funaba 1998-2011 * - * 1998-2011 by Tadayoshi Funaba + * 'date' provides two classes Date and DateTime. * - * = Introduction - * - * Date and DateTime are included in the standard library. To use, require atewill provide both classes. - * * == Terms and definitions * * Some terms and definitions are based on ISO 8601 and JIS X 0301. * - * === Calendar date + * === calendar date * * The calendar date is a particular day of a calendar year, * identified by its ordinal number within a calendar month within * that year. * - * In the Date and DateTime classes, this is called "civil." + * In those classes, this is so-called "civil". * - * Date.civil(2012,03,17) - * This refers to March 17th, 2012. + * === ordinal date * - * === Ordinal date - * * The ordinal date is a particular day of a calendar year identified * by its ordinal number within the year. * - * In the Date and DateTime classes, this is called "ordinal." + * In those classes, this is so-called "ordinal". * - * Date.ordinal(2012,77) - * This refers to the 77th day of 2012. + * === week date * - * - * === Week date - * * The week date is a date identified by calendar week and day numbers. * * The calendar week is a seven day period within a calendar year, @@ -9278,14 +9267,10 @@ * includes the first Thursday of that year. In the Gregorian * calendar, this is equivalent to the week which includes January 4. * - * In the Date and DateTime classes, this is called "commercial." + * In those classes, this so-called "commercial". * - * Date.commercial(2012,11,06) - * This refers to the 6th day of the 11th week of 2012. + * === julian day number * - * - * === Julian day number - * * The Julian day number is in elapsed days since noon (Greenwich mean * time) on January 1, 4713 BCE (in the Julian calendar). * @@ -9298,13 +9283,10 @@ * it just refers to "chronological Julian day number", not the * original. * - * In the Date and DateTime classes, this is called "ajd" and "jd." + * In those classes, those are so-called "ajd" and "jd". * - * Date.jd(2456004) - * This refers to 2,456,004 days since January 1, 4713 BCE. + * === modified julian day number * - * === Modified julian day number - * * The modified Julian day number is in elapsed days since midnight * (Coordinated universal time) on November 17, 1858 CE (in the * Gregorian calendar). @@ -9319,10 +9301,8 @@ * appears, it just refers to "chronological modified Julian day * number", not the original. * - * In the Date and DateTime classes, this is called "mjd." + * In those classes, this is so-called "mjd". * - * Date.new(2012,03,17).mjd #=> 56003 - * 2012-03-17 is 56,003 days after November 17, 1858 CE. * * == Date * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/