From 45f6fbf339e3666ea1e64d9e13fd40c61977248d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 May 2010 18:51:39 +0000 Subject: * removed trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index 7a1fb48dfc..63b52a0726 100644 --- a/time.c +++ b/time.c @@ -131,7 +131,7 @@ static VALUE mul(VALUE x, VALUE y) { if (FIXNUM_P(x) && FIXNUM_P(y)) { -#if HAVE_LONG_LONG && SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG +#if HAVE_LONG_LONG && SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG LONG_LONG ll = (LONG_LONG)FIX2LONG(x) * FIX2LONG(y); if (FIXABLE(ll)) return LONG2FIX(ll); @@ -1362,7 +1362,7 @@ static struct tm *localtime_with_gmtoff(const time_t *t, struct tm *result, long * The year 2037 is not used because * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522949 * - * #!/usr/bin/ruby + * #!/usr/bin/ruby * * require 'date' * @@ -1373,8 +1373,8 @@ static struct tm *localtime_with_gmtoff(const time_t *t, struct tm *result, long * d = Date.new(y,m,1) * h[m] ||= {} * h[m][d.wday] ||= y - * } - * } + * } + * } * * 1.upto(12) {|m| * print "{" @@ -1405,10 +1405,10 @@ static int compat_common_month_table[12][7] = { /* * compat_leap_month_table is generated by following program. * - * #!/usr/bin/ruby - * + * #!/usr/bin/ruby + * * require 'date' - * + * * h = {} * 2037.downto(2010) {|y| * 1.upto(12) {|m| @@ -1418,7 +1418,7 @@ static int compat_common_month_table[12][7] = { * h[m][d.wday] ||= y * } * } - * + * * 2.upto(2) {|m| * 0.upto(6) {|w| * y = h[m][w] @@ -2145,7 +2145,7 @@ time_init_1(int argc, VALUE *argv, VALUE time) * t1 = Time.new(2007,11,1,15,25,0, "+09:00") # JST (Narita) * t2 = Time.new(2007,11,1,12, 5,0, "-05:00") # CDT (Minneapolis) * t3 = Time.new(2007,11,1,13,25,0, "-05:00") # CDT (Minneapolis) - * t4 = Time.new(2007,11,1,16,53,0, "-04:00") # EDT (Charlotte) + * t4 = Time.new(2007,11,1,16,53,0, "-04:00") # EDT (Charlotte) * t5 = Time.new(2007,11,5, 9,24,0, "-05:00") # EST (Charlotte) * t6 = Time.new(2007,11,5,11,21,0, "-05:00") # EST (Detroit) * t7 = Time.new(2007,11,5,13,45,0, "-05:00") # EST (Detroit) @@ -3701,7 +3701,7 @@ rb_time_succ(VALUE time) * p t.round(9).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" * p t.round(10).iso8601(10) #=> "2010-03-30T05:43:25.1234567890Z" * - * t = Time.utc(1999,12,31, 23,59,59) + * t = Time.utc(1999,12,31, 23,59,59) * p((t + 0.4).round.iso8601(3)) #=> "1999-12-31T23:59:59.000Z" * p((t + 0.49).round.iso8601(3)) #=> "1999-12-31T23:59:59.000Z" * p((t + 0.5).round.iso8601(3)) #=> "2000-01-01T00:00:00.000Z" @@ -4258,13 +4258,13 @@ strftimev(const char *fmt, VALUE time) * %C - Century (20 in 2009) * %d - Day of the month (01..31) * %D - Date (%m/%d/%y) - * %e - Day of the month, blank-padded ( 1..31) + * %e - Day of the month, blank-padded ( 1..31) * %F - Equivalent to %Y-%m-%d (the ISO 8601 date format) * %h - Equivalent to %b * %H - Hour of the day, 24-hour clock (00..23) * %I - Hour of the day, 12-hour clock (01..12) * %j - Day of the year (001..366) - * %k - hour, 24-hour clock, blank-padded ( 0..23) + * %k - hour, 24-hour clock, blank-padded ( 0..23) * %l - hour, 12-hour clock, blank-padded ( 0..12) * %L - Millisecond of the second (000..999) * %m - Month of the year (01..12) -- cgit v1.2.3