home_run 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +0 -1
- data/ext/date_ext/date_ext.c +192 -191
- data/ext/date_ext/datetime.c +12 -11
- data/spec/date/add_month_spec.rb +5 -0
- data/spec/date/add_spec.rb +5 -0
- data/spec/date/civil_spec.rb +5 -1
- data/spec/date/commercial_spec.rb +5 -0
- data/spec/date/conversions_spec.rb +10 -0
- data/spec/date/downto_spec.rb +6 -0
- data/spec/date/julian_spec.rb +10 -0
- data/spec/date/minus_month_spec.rb +5 -0
- data/spec/date/minus_spec.rb +5 -0
- data/spec/date/next_prev_spec.rb +30 -1
- data/spec/date/ordinal_spec.rb +5 -0
- data/spec/date/parse_spec.rb +6 -0
- data/spec/date/parsing_spec.rb +11 -0
- data/spec/date/step_spec.rb +6 -0
- data/spec/date/strptime_spec.rb +6 -0
- data/spec/date/succ_spec.rb +5 -0
- data/spec/date/today_spec.rb +5 -0
- data/spec/date/upto_spec.rb +7 -0
- data/spec/datetime/add_month_spec.rb +5 -0
- data/spec/datetime/add_spec.rb +5 -0
- data/spec/datetime/constructor_spec.rb +10 -0
- data/spec/datetime/conversions_spec.rb +5 -0
- data/spec/datetime/downto_spec.rb +6 -0
- data/spec/datetime/minus_month_spec.rb +5 -2
- data/spec/datetime/minus_spec.rb +5 -0
- data/spec/datetime/next_prev_spec.rb +30 -0
- data/spec/datetime/now_spec.rb +5 -0
- data/spec/datetime/parse_spec.rb +6 -0
- data/spec/datetime/parsing_spec.rb +11 -0
- data/spec/datetime/step_spec.rb +6 -0
- data/spec/datetime/strptime_spec.rb +6 -0
- data/spec/datetime/succ_spec.rb +5 -0
- data/spec/datetime/upto_spec.rb +6 -0
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.9.4 (2010-10-18)
|
2
|
+
|
3
|
+
* Have methods of subclasses of Date and DateTime return instances of the subclass (jeremyevans)
|
4
|
+
|
1
5
|
=== 0.9.3 (2010-09-20)
|
2
6
|
|
3
7
|
* Don't attempt to undefine already undefined method if you require date_ext twice with two different paths (jeremyevans)
|
data/README.rdoc
CHANGED
data/ext/date_ext/date_ext.c
CHANGED
@@ -286,7 +286,7 @@ VALUE rhrd__add_days(VALUE self, long n) {
|
|
286
286
|
VALUE new;
|
287
287
|
long x;
|
288
288
|
Data_Get_Struct(self, rhrd_t, d);
|
289
|
-
new = Data_Make_Struct(
|
289
|
+
new = Data_Make_Struct(rb_obj_class(self), rhrd_t, NULL, -1, newd);
|
290
290
|
|
291
291
|
if(!(RHR_HAS_JD(d))) {
|
292
292
|
x = rhrd__safe_add_long(n, (long)(d->day));
|
@@ -317,7 +317,7 @@ VALUE rhrd__add_months(VALUE self, long n) {
|
|
317
317
|
long x;
|
318
318
|
Data_Get_Struct(self, rhrd_t, d);
|
319
319
|
|
320
|
-
new = Data_Make_Struct(
|
320
|
+
new = Data_Make_Struct(rb_obj_class(self), rhrd_t, NULL, -1, newd);
|
321
321
|
RHR_FILL_CIVIL(d)
|
322
322
|
n = rhrd__safe_add_long(n, (long)(d->month));
|
323
323
|
if(n > 1 && n <= 12) {
|
@@ -718,9 +718,9 @@ int rhrd__fill_from_hash(rhrd_t *d, VALUE hash) {
|
|
718
718
|
/* Returns a new ruby object filled with information from
|
719
719
|
* the given hash, or raises an error if the given hash
|
720
720
|
* did not contain valid date information. */
|
721
|
-
VALUE rhrd__from_hash(VALUE hash) {
|
721
|
+
VALUE rhrd__from_hash(VALUE klass, VALUE hash) {
|
722
722
|
rhrd_t *d;
|
723
|
-
VALUE rd = Data_Make_Struct(
|
723
|
+
VALUE rd = Data_Make_Struct(klass, rhrd_t, NULL, -1, d);
|
724
724
|
if(rhrd__fill_from_hash(d, hash)) {
|
725
725
|
rb_raise(rb_eArgError, "invalid date");
|
726
726
|
} else {
|
@@ -1255,7 +1255,7 @@ VALUE rhrd__strptime(VALUE rstr, const char *fmt_str, long fmt_len) {
|
|
1255
1255
|
case 'Z':
|
1256
1256
|
#define RHR_PARSE_Z zone = rb_funcall(rhrd_zone_re, rhrd_id_match, 1, rb_funcall(rstr, rhrd_id_slice, 2, LONG2NUM(pos), LONG2NUM(len)));\
|
1257
1257
|
if (RTEST(zone)) {\
|
1258
|
-
zone = rb_funcall(zone, rhrd_id_op_array, 1,
|
1258
|
+
zone = rb_funcall(zone, rhrd_id_op_array, 1, INT2FIX(0));\
|
1259
1259
|
scan_len = NUM2LONG(rb_funcall(zone, rhrd_id_length, 0));\
|
1260
1260
|
} else {\
|
1261
1261
|
return Qnil;\
|
@@ -1736,10 +1736,10 @@ static VALUE rhrd_s_parse(int argc, VALUE *argv, VALUE klass) {
|
|
1736
1736
|
d->flags = RHR_HAVE_JD;
|
1737
1737
|
return rd;
|
1738
1738
|
case 1:
|
1739
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__parse, 1, argv[0]));
|
1739
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__parse, 1, argv[0]));
|
1740
1740
|
case 2:
|
1741
1741
|
case 3:
|
1742
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__parse, 2, argv[0], argv[1]));
|
1742
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__parse, 2, argv[0], argv[1]));
|
1743
1743
|
default:
|
1744
1744
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 3)", argc);
|
1745
1745
|
break;
|
@@ -1779,7 +1779,7 @@ static VALUE rhrd_s_strptime(int argc, VALUE *argv, VALUE klass) {
|
|
1779
1779
|
|
1780
1780
|
rd = rhrd_s__strptime(argc, argv, klass);
|
1781
1781
|
if (RTEST(rd)) {
|
1782
|
-
return rhrd__from_hash(rd);
|
1782
|
+
return rhrd__from_hash(klass, rd);
|
1783
1783
|
}
|
1784
1784
|
rb_raise(rb_eArgError, "invalid date");
|
1785
1785
|
}
|
@@ -2009,7 +2009,7 @@ VALUE rhrd_s_zone_to_diff(VALUE klass, VALUE str) {
|
|
2009
2009
|
}
|
2010
2010
|
switch (len) {
|
2011
2011
|
case 0:
|
2012
|
-
return
|
2012
|
+
return INT2FIX(0);
|
2013
2013
|
case 1:
|
2014
2014
|
case 2:
|
2015
2015
|
return LONG2NUM(atol(s) * RHR_SECONDS_PER_HOUR * offset);
|
@@ -2036,7 +2036,7 @@ VALUE rhrd_s_zone_to_diff(VALUE klass, VALUE str) {
|
|
2036
2036
|
}
|
2037
2037
|
}
|
2038
2038
|
|
2039
|
-
return
|
2039
|
+
return INT2FIX(0);
|
2040
2040
|
}
|
2041
2041
|
|
2042
2042
|
/* Ruby instance methods */
|
@@ -2173,7 +2173,7 @@ static VALUE rhrd_day(VALUE self) {
|
|
2173
2173
|
* +Date+ objects due not hold fractional days, so 0 is always returned.
|
2174
2174
|
*/
|
2175
2175
|
static VALUE rhrd_day_fraction(VALUE self) {
|
2176
|
-
return
|
2176
|
+
return INT2FIX(0);
|
2177
2177
|
}
|
2178
2178
|
|
2179
2179
|
/* call-seq:
|
@@ -2452,7 +2452,7 @@ static VALUE rhrd_step(int argc, VALUE *argv, VALUE self) {
|
|
2452
2452
|
rhrd_t *d, *n, *newd;
|
2453
2453
|
rhrdt_t *ndt;
|
2454
2454
|
long step, limit, current;
|
2455
|
-
VALUE rlimit, new, rstep;
|
2455
|
+
VALUE rlimit, new, rstep, klass;
|
2456
2456
|
Data_Get_Struct(self, rhrd_t, d);
|
2457
2457
|
RHR_FILL_JD(d)
|
2458
2458
|
|
@@ -2470,6 +2470,7 @@ static VALUE rhrd_step(int argc, VALUE *argv, VALUE self) {
|
|
2470
2470
|
break;
|
2471
2471
|
}
|
2472
2472
|
rlimit = argv[0];
|
2473
|
+
klass = rb_obj_class(self);
|
2473
2474
|
|
2474
2475
|
#ifdef RUBY19
|
2475
2476
|
if (!rb_block_given_p()) {
|
@@ -2497,7 +2498,7 @@ static VALUE rhrd_step(int argc, VALUE *argv, VALUE self) {
|
|
2497
2498
|
if (limit > current) {
|
2498
2499
|
if (step > 0) {
|
2499
2500
|
while(limit >= current) {
|
2500
|
-
new = Data_Make_Struct(
|
2501
|
+
new = Data_Make_Struct(klass, rhrd_t, NULL, -1, newd);
|
2501
2502
|
newd->jd = current;
|
2502
2503
|
RHR_CHECK_JD(newd)
|
2503
2504
|
newd->flags = RHR_HAVE_JD;
|
@@ -2508,7 +2509,7 @@ static VALUE rhrd_step(int argc, VALUE *argv, VALUE self) {
|
|
2508
2509
|
} else if (limit < current) {
|
2509
2510
|
if (step < 0) {
|
2510
2511
|
while(limit <= current) {
|
2511
|
-
new = Data_Make_Struct(
|
2512
|
+
new = Data_Make_Struct(klass, rhrd_t, NULL, -1, newd);
|
2512
2513
|
newd->jd = current;
|
2513
2514
|
RHR_CHECK_JD(newd)
|
2514
2515
|
newd->flags = RHR_HAVE_JD;
|
@@ -2893,7 +2894,7 @@ VALUE rhrd__add_years(VALUE self, long n) {
|
|
2893
2894
|
VALUE new;
|
2894
2895
|
Data_Get_Struct(self, rhrd_t, d);
|
2895
2896
|
|
2896
|
-
new = Data_Make_Struct(
|
2897
|
+
new = Data_Make_Struct(rb_obj_class(self), rhrd_t, NULL, -1, newd);
|
2897
2898
|
RHR_FILL_CIVIL(d)
|
2898
2899
|
newd->year = rhrd__safe_add_long(n, d->year);
|
2899
2900
|
newd->month = d->month;
|
@@ -2946,7 +2947,7 @@ static VALUE rhrd_s_httpdate(int argc, VALUE *argv, VALUE klass) {
|
|
2946
2947
|
return rd;
|
2947
2948
|
case 1:
|
2948
2949
|
case 2:
|
2949
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__httpdate, 1, argv[0]));
|
2950
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__httpdate, 1, argv[0]));
|
2950
2951
|
default:
|
2951
2952
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
2952
2953
|
break;
|
@@ -2980,7 +2981,7 @@ static VALUE rhrd_s_iso8601(int argc, VALUE *argv, VALUE klass) {
|
|
2980
2981
|
return rd;
|
2981
2982
|
case 1:
|
2982
2983
|
case 2:
|
2983
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__iso8601, 1, argv[0]));
|
2984
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__iso8601, 1, argv[0]));
|
2984
2985
|
default:
|
2985
2986
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
2986
2987
|
break;
|
@@ -3014,7 +3015,7 @@ static VALUE rhrd_s_jisx0301(int argc, VALUE *argv, VALUE klass) {
|
|
3014
3015
|
return rd;
|
3015
3016
|
case 1:
|
3016
3017
|
case 2:
|
3017
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__jisx0301, 1, argv[0]));
|
3018
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__jisx0301, 1, argv[0]));
|
3018
3019
|
default:
|
3019
3020
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
3020
3021
|
break;
|
@@ -3048,7 +3049,7 @@ static VALUE rhrd_s_rfc2822(int argc, VALUE *argv, VALUE klass) {
|
|
3048
3049
|
return rd;
|
3049
3050
|
case 1:
|
3050
3051
|
case 2:
|
3051
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__rfc2822, 1, argv[0]));
|
3052
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__rfc2822, 1, argv[0]));
|
3052
3053
|
default:
|
3053
3054
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
3054
3055
|
break;
|
@@ -3082,7 +3083,7 @@ static VALUE rhrd_s_rfc3339(int argc, VALUE *argv, VALUE klass) {
|
|
3082
3083
|
return rd;
|
3083
3084
|
case 1:
|
3084
3085
|
case 2:
|
3085
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__rfc3339, 1, argv[0]));
|
3086
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__rfc3339, 1, argv[0]));
|
3086
3087
|
default:
|
3087
3088
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
3088
3089
|
break;
|
@@ -3116,7 +3117,7 @@ static VALUE rhrd_s_xmlschema(int argc, VALUE *argv, VALUE klass) {
|
|
3116
3117
|
return rd;
|
3117
3118
|
case 1:
|
3118
3119
|
case 2:
|
3119
|
-
return rhrd__from_hash(rb_funcall(klass, rhrd_id__xmlschema, 1, argv[0]));
|
3120
|
+
return rhrd__from_hash(klass, rb_funcall(klass, rhrd_id__xmlschema, 1, argv[0]));
|
3120
3121
|
default:
|
3121
3122
|
rb_raise(rb_eArgError, "wrong number of arguments (%i for 2)", argc);
|
3122
3123
|
break;
|
@@ -4125,176 +4126,176 @@ void Init_date_ext(void) {
|
|
4125
4126
|
}
|
4126
4127
|
|
4127
4128
|
rhrd_zones_hash = rb_hash_new();
|
4128
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("a"),
|
4129
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("adt"),
|
4130
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("afghanistan"),
|
4131
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ahst"),
|
4132
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("akdt"),
|
4133
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("akst"),
|
4134
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("alaskan"),
|
4135
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arab"),
|
4136
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arabian"),
|
4137
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arabic"),
|
4138
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("art"),
|
4139
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ast"),
|
4140
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("at"),
|
4141
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("atlantic"),
|
4142
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("aus central"),
|
4143
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("aus eastern"),
|
4144
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("azores"),
|
4145
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("b"),
|
4146
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("brst"),
|
4147
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("brt"),
|
4148
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("bst"),
|
4149
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("bt"),
|
4150
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("c"),
|
4151
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("canada central"),
|
4152
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cape verde"),
|
4153
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cat"),
|
4154
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("caucasus"),
|
4155
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cct"),
|
4156
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cdt"),
|
4157
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cen. australia"),
|
4158
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central"),
|
4159
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central america"),
|
4160
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central asia"),
|
4161
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central europe"),
|
4162
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central european"),
|
4163
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central pacific"),
|
4164
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cest"),
|
4165
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cet"),
|
4166
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("china"),
|
4167
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("clst"),
|
4168
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("clt"),
|
4169
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cst"),
|
4170
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("d"),
|
4171
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("dateline"),
|
4172
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e"),
|
4173
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. africa"),
|
4174
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. australia"),
|
4175
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. europe"),
|
4176
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. south america"),
|
4177
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eadt"),
|
4178
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("east"),
|
4179
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eastern"),
|
4180
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eat"),
|
4181
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("edt"),
|
4182
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eest"),
|
4183
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eet"),
|
4184
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("egypt"),
|
4185
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ekaterinburg"),
|
4186
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("est"),
|
4187
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("f"),
|
4188
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fiji"),
|
4189
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fle"),
|
4190
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fst"),
|
4191
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fwt"),
|
4192
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("g"),
|
4193
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gmt"),
|
4194
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("greenland"),
|
4195
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("greenwich"),
|
4196
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gst"),
|
4197
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gtb"),
|
4198
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("h"),
|
4199
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hadt"),
|
4200
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hast"),
|
4201
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hawaiian"),
|
4202
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hdt"),
|
4203
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hst"),
|
4204
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("i"),
|
4205
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("idle"),
|
4206
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("idlw"),
|
4207
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("india"),
|
4208
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("iran"),
|
4209
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ist"),
|
4210
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("jerusalem"),
|
4211
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("jst"),
|
4212
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("k"),
|
4213
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("korea"),
|
4214
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("kst"),
|
4215
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("l"),
|
4216
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("m"),
|
4217
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("malay peninsula"),
|
4218
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mdt"),
|
4219
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mest"),
|
4220
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mesz"),
|
4221
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("met"),
|
4222
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mewt"),
|
4223
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mexico"),
|
4224
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mez"),
|
4225
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mid-atlantic"),
|
4226
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mountain"),
|
4227
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("msd"),
|
4228
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("msk"),
|
4229
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mst"),
|
4230
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("myanmar"),
|
4231
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("n"),
|
4232
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("n. central asia"),
|
4233
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ndt"),
|
4234
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nepal"),
|
4235
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("new zealand"),
|
4236
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("newfoundland"),
|
4237
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("north asia"),
|
4238
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("north asia east"),
|
4239
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nst"),
|
4240
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nt"),
|
4241
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzdt"),
|
4242
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzst"),
|
4243
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzt"),
|
4244
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("o"),
|
4245
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("p"),
|
4246
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pacific"),
|
4247
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pacific sa"),
|
4248
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pdt"),
|
4249
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pst"),
|
4250
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("q"),
|
4251
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("r"),
|
4252
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("romance"),
|
4253
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("russian"),
|
4254
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("s"),
|
4255
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa eastern"),
|
4256
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa pacific"),
|
4257
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa western"),
|
4258
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("samoa"),
|
4259
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sast"),
|
4260
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("se asia"),
|
4261
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sgt"),
|
4262
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("south africa"),
|
4263
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sri lanka"),
|
4264
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sst"),
|
4265
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("swt"),
|
4266
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("t"),
|
4267
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("taipei"),
|
4268
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tasmania"),
|
4269
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tokyo"),
|
4270
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tonga"),
|
4271
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("u"),
|
4272
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("us eastern"),
|
4273
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("us mountain"),
|
4274
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ut"),
|
4275
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("utc"),
|
4276
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("v"),
|
4277
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("vladivostok"),
|
4278
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w"),
|
4279
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. australia"),
|
4280
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. central africa"),
|
4281
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. europe"),
|
4282
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wadt"),
|
4283
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wast"),
|
4284
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wat"),
|
4285
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west"),
|
4286
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west asia"),
|
4287
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west pacific"),
|
4288
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wet"),
|
4289
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("x"),
|
4290
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("y"),
|
4291
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("yakutsk"),
|
4292
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ydt"),
|
4293
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("yst"),
|
4294
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("z"),
|
4295
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp4"),
|
4296
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp5"),
|
4297
|
-
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp6"),
|
4129
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("a"), INT2FIX(3600));
|
4130
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("adt"), INT2FIX(-10800));
|
4131
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("afghanistan"), INT2FIX(16200));
|
4132
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ahst"), INT2FIX(-36000));
|
4133
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("akdt"), INT2FIX(-28800));
|
4134
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("akst"), INT2FIX(-32400));
|
4135
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("alaskan"), INT2FIX(-32400));
|
4136
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arab"), INT2FIX(10800));
|
4137
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arabian"), INT2FIX(14400));
|
4138
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("arabic"), INT2FIX(10800));
|
4139
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("art"), INT2FIX(-10800));
|
4140
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ast"), INT2FIX(-14400));
|
4141
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("at"), INT2FIX(-7200));
|
4142
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("atlantic"), INT2FIX(-14400));
|
4143
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("aus central"), INT2FIX(34200));
|
4144
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("aus eastern"), INT2FIX(36000));
|
4145
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("azores"), INT2FIX(-3600));
|
4146
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("b"), INT2FIX(7200));
|
4147
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("brst"), INT2FIX(-7200));
|
4148
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("brt"), INT2FIX(-10800));
|
4149
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("bst"), INT2FIX(3600));
|
4150
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("bt"), INT2FIX(10800));
|
4151
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("c"), INT2FIX(10800));
|
4152
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("canada central"), INT2FIX(-21600));
|
4153
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cape verde"), INT2FIX(-3600));
|
4154
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cat"), INT2FIX(-36000));
|
4155
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("caucasus"), INT2FIX(14400));
|
4156
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cct"), INT2FIX(28800));
|
4157
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cdt"), INT2FIX(-18000));
|
4158
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cen. australia"), INT2FIX(34200));
|
4159
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central"), INT2FIX(-21600));
|
4160
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central america"), INT2FIX(-21600));
|
4161
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central asia"), INT2FIX(21600));
|
4162
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central europe"), INT2FIX(3600));
|
4163
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central european"), INT2FIX(3600));
|
4164
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("central pacific"), INT2FIX(39600));
|
4165
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cest"), INT2FIX(7200));
|
4166
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cet"), INT2FIX(3600));
|
4167
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("china"), INT2FIX(28800));
|
4168
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("clst"), INT2FIX(-10800));
|
4169
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("clt"), INT2FIX(-14400));
|
4170
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("cst"), INT2FIX(-21600));
|
4171
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("d"), INT2FIX(14400));
|
4172
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("dateline"), INT2FIX(-43200));
|
4173
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e"), INT2FIX(18000));
|
4174
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. africa"), INT2FIX(10800));
|
4175
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. australia"), INT2FIX(36000));
|
4176
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. europe"), INT2FIX(7200));
|
4177
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("e. south america"), INT2FIX(-10800));
|
4178
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eadt"), INT2FIX(39600));
|
4179
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("east"), INT2FIX(36000));
|
4180
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eastern"), INT2FIX(-18000));
|
4181
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eat"), INT2FIX(10800));
|
4182
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("edt"), INT2FIX(-14400));
|
4183
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eest"), INT2FIX(10800));
|
4184
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("eet"), INT2FIX(7200));
|
4185
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("egypt"), INT2FIX(7200));
|
4186
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ekaterinburg"), INT2FIX(18000));
|
4187
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("est"), INT2FIX(-18000));
|
4188
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("f"), INT2FIX(21600));
|
4189
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fiji"), INT2FIX(43200));
|
4190
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fle"), INT2FIX(7200));
|
4191
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fst"), INT2FIX(7200));
|
4192
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("fwt"), INT2FIX(3600));
|
4193
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("g"), INT2FIX(25200));
|
4194
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gmt"), INT2FIX(0));
|
4195
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("greenland"), INT2FIX(-10800));
|
4196
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("greenwich"), INT2FIX(0));
|
4197
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gst"), INT2FIX(36000));
|
4198
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("gtb"), INT2FIX(7200));
|
4199
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("h"), INT2FIX(28800));
|
4200
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hadt"), INT2FIX(-32400));
|
4201
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hast"), INT2FIX(-36000));
|
4202
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hawaiian"), INT2FIX(-36000));
|
4203
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hdt"), INT2FIX(-32400));
|
4204
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("hst"), INT2FIX(-36000));
|
4205
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("i"), INT2FIX(32400));
|
4206
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("idle"), INT2FIX(43200));
|
4207
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("idlw"), INT2FIX(-43200));
|
4208
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("india"), INT2FIX(19800));
|
4209
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("iran"), INT2FIX(12600));
|
4210
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ist"), INT2FIX(19800));
|
4211
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("jerusalem"), INT2FIX(7200));
|
4212
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("jst"), INT2FIX(32400));
|
4213
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("k"), INT2FIX(36000));
|
4214
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("korea"), INT2FIX(32400));
|
4215
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("kst"), INT2FIX(32400));
|
4216
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("l"), INT2FIX(39600));
|
4217
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("m"), INT2FIX(43200));
|
4218
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("malay peninsula"), INT2FIX(28800));
|
4219
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mdt"), INT2FIX(-21600));
|
4220
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mest"), INT2FIX(7200));
|
4221
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mesz"), INT2FIX(7200));
|
4222
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("met"), INT2FIX(3600));
|
4223
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mewt"), INT2FIX(3600));
|
4224
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mexico"), INT2FIX(-21600));
|
4225
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mez"), INT2FIX(3600));
|
4226
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mid-atlantic"), INT2FIX(-7200));
|
4227
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mountain"), INT2FIX(-25200));
|
4228
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("msd"), INT2FIX(14400));
|
4229
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("msk"), INT2FIX(10800));
|
4230
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("mst"), INT2FIX(-25200));
|
4231
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("myanmar"), INT2FIX(23400));
|
4232
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("n"), INT2FIX(-3600));
|
4233
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("n. central asia"), INT2FIX(21600));
|
4234
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ndt"), INT2FIX(-9000));
|
4235
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nepal"), INT2FIX(20700));
|
4236
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("new zealand"), INT2FIX(43200));
|
4237
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("newfoundland"), INT2FIX(-12600));
|
4238
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("north asia"), INT2FIX(25200));
|
4239
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("north asia east"), INT2FIX(28800));
|
4240
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nst"), INT2FIX(-12600));
|
4241
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nt"), INT2FIX(-39600));
|
4242
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzdt"), INT2FIX(46800));
|
4243
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzst"), INT2FIX(43200));
|
4244
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("nzt"), INT2FIX(43200));
|
4245
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("o"), INT2FIX(-7200));
|
4246
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("p"), INT2FIX(-10800));
|
4247
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pacific"), INT2FIX(-28800));
|
4248
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pacific sa"), INT2FIX(-14400));
|
4249
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pdt"), INT2FIX(-25200));
|
4250
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("pst"), INT2FIX(-28800));
|
4251
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("q"), INT2FIX(-14400));
|
4252
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("r"), INT2FIX(-18000));
|
4253
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("romance"), INT2FIX(3600));
|
4254
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("russian"), INT2FIX(10800));
|
4255
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("s"), INT2FIX(-21600));
|
4256
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa eastern"), INT2FIX(-10800));
|
4257
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa pacific"), INT2FIX(-18000));
|
4258
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sa western"), INT2FIX(-14400));
|
4259
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("samoa"), INT2FIX(-39600));
|
4260
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sast"), INT2FIX(7200));
|
4261
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("se asia"), INT2FIX(25200));
|
4262
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sgt"), INT2FIX(28800));
|
4263
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("south africa"), INT2FIX(7200));
|
4264
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sri lanka"), INT2FIX(21600));
|
4265
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("sst"), INT2FIX(7200));
|
4266
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("swt"), INT2FIX(3600));
|
4267
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("t"), INT2FIX(-25200));
|
4268
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("taipei"), INT2FIX(28800));
|
4269
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tasmania"), INT2FIX(36000));
|
4270
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tokyo"), INT2FIX(32400));
|
4271
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("tonga"), INT2FIX(46800));
|
4272
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("u"), INT2FIX(-28800));
|
4273
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("us eastern"), INT2FIX(-18000));
|
4274
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("us mountain"), INT2FIX(-25200));
|
4275
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ut"), INT2FIX(0));
|
4276
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("utc"), INT2FIX(0));
|
4277
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("v"), INT2FIX(-32400));
|
4278
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("vladivostok"), INT2FIX(36000));
|
4279
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w"), INT2FIX(-36000));
|
4280
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. australia"), INT2FIX(28800));
|
4281
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. central africa"), INT2FIX(3600));
|
4282
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("w. europe"), INT2FIX(3600));
|
4283
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wadt"), INT2FIX(28800));
|
4284
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wast"), INT2FIX(25200));
|
4285
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wat"), INT2FIX(3600));
|
4286
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west"), INT2FIX(3600));
|
4287
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west asia"), INT2FIX(18000));
|
4288
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("west pacific"), INT2FIX(36000));
|
4289
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("wet"), INT2FIX(0));
|
4290
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("x"), INT2FIX(-39600));
|
4291
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("y"), INT2FIX(-43200));
|
4292
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("yakutsk"), INT2FIX(32400));
|
4293
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("ydt"), INT2FIX(-28800));
|
4294
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("yst"), INT2FIX(-32400));
|
4295
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("z"), INT2FIX(0));
|
4296
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp4"), INT2FIX(14400));
|
4297
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp5"), INT2FIX(18000));
|
4298
|
+
rb_hash_aset(rhrd_zones_hash, rb_str_new2("zp6"), INT2FIX(21600));
|
4298
4299
|
|
4299
4300
|
rhrd_start_num = LONG2NUM(RHR_JD_MIN - 1);
|
4300
4301
|
rhrd_empty_string = rb_str_new("", 0);
|