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

ruby-changes:20167

From: tadf <ko1@a...>
Date: Fri, 24 Jun 2011 00:15:47 +0900 (JST)
Subject: [ruby-changes:20167] tadf:r32214 (trunk): * ext/date/date_core.c: trivial changes on text.

tadf	2011-06-24 00:15:37 +0900 (Fri, 24 Jun 2011)

  New Revision: 32214

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

  Log:
    * ext/date/date_core.c: trivial changes on text.

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/date_core.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32213)
+++ ChangeLog	(revision 32214)
@@ -1,3 +1,7 @@
+Fri Jun 24 00:14:23 2011  Tadayoshi Funaba  <tadf@d...>
+
+	* ext/date/date_core.c: trivial changes on text.
+
 Thu Jun 23 22:46:57 2011  Hiroshi Nakamura  <nahi@r...>
 
 	* ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 32213)
+++ ext/date/date_core.c	(revision 32214)
@@ -4054,18 +4054,18 @@
 	return Qnil;
 
     {
-	VALUE zone = rb_hash_aref(hash, ID2SYM(rb_intern("zone")));
-	VALUE left = rb_hash_aref(hash, ID2SYM(rb_intern("leftover")));
+	VALUE zone = ref_hash("zone");
+	VALUE left = ref_hash("leftover");
 
 	if (!NIL_P(zone)) {
 	    rb_enc_copy(zone, vstr);
 	    OBJ_INFECT(zone, vstr);
-	    rb_hash_aset(hash, ID2SYM(rb_intern("zone")), zone);
+	    set_hash("zone", zone);
 	}
 	if (!NIL_P(left)) {
 	    rb_enc_copy(left, vstr);
 	    OBJ_INFECT(left, vstr);
-	    rb_hash_aset(hash, ID2SYM(rb_intern("leftover")), left);
+	    set_hash("leftover", left);
 	}
     }
 
@@ -4155,12 +4155,12 @@
     hash = date__parse(vstr, vcomp);
 
     {
-	VALUE zone = rb_hash_aref(hash, ID2SYM(rb_intern("zone")));
+	VALUE zone = ref_hash("zone");
 
 	if (!NIL_P(zone)) {
 	    rb_enc_copy(zone, vstr);
 	    OBJ_INFECT(zone, vstr);
-	    rb_hash_aset(hash, ID2SYM(rb_intern("zone")), zone);
+	    set_hash("zone", zone);
 	}
     }
 
@@ -6807,7 +6807,7 @@
  *      %U - Week number of the year.  The week starts with Sunday.  (00..53)
  *      %W - Week number of the year.  The week starts with Monday.  (00..53)
  *
- *    Seconds since the Epoch:
+ *    Seconds since the Unix Epoch:
  *      %s - Number of seconds since 1970-01-01 00:00:00 UTC.
  *      %Q - Number of microseconds since 1970-01-01 00:00:00 UTC.
  *
@@ -6840,7 +6840,7 @@
  *  Examples:
  *
  *    d = DateTime.new(2007,11,19,8,37,48,"-06:00")
- *				#=> #<DateTime: 2007-11-19 08:37:48 -0600 ...>
+ *				#=> #<DateTime: 2007-11-19T08:37:48-0600 ...>
  *    d.strftime("Printed on %m/%d/%Y")   #=> "Printed on 11/19/2007"
  *    d.strftime("at %I:%M%p")            #=> "at 08:37AM"
  *
@@ -7831,7 +7831,7 @@
 
 /*
  * call-seq:
- *    Date.parse(string="-4712-01-01T00:00:00+00:00"[, comp=true[, start=ITALY]])  ->  datetime
+ *    DateTime.parse(string="-4712-01-01T00:00:00+00:00"[, comp=true[, start=ITALY]])  ->  datetime
  *
  * Parses the given representation of date and time, and creates a
  * date object.
@@ -7841,7 +7841,6 @@
  *
  * For example:
  *
- *    Date.parse('11-06-13')	#=> #<Date: 2011-06-13 ...>
  *    DateTime.parse('2001-02-03T04:05:06+07:00')
  *				#=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
  *    DateTime.parse('20010203T040506+0700')
@@ -8192,7 +8191,7 @@
  *      %U - Week number of the year.  The week starts with Sunday.  (00..53)
  *      %W - Week number of the year.  The week starts with Monday.  (00..53)
  *
- *    Seconds since the Epoch:
+ *    Seconds since the Unix Epoch:
  *      %s - Number of seconds since 1970-01-01 00:00:00 UTC.
  *      %Q - Number of microseconds since 1970-01-01 00:00:00 UTC.
  *
@@ -8225,7 +8224,7 @@
  *  Examples:
  *
  *    d = DateTime.new(2007,11,19,8,37,48,"-06:00")
- *				#=> #<DateTime: 2007-11-19 08:37:48 -0600 ...>
+ *				#=> #<DateTime: 2007-11-19T08:37:48-0600 ...>
  *    d.strftime("Printed on %m/%d/%Y")   #=> "Printed on 11/19/2007"
  *    d.strftime("at %I:%M%p")            #=> "at 08:37AM"
  *

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

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