summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-14 15:38:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-14 15:38:30 +0000
commit8ffda7cd1467f55866c9c5c433ae9a95b510ee2e (patch)
treecdd6ee65bea3babc7945f37aafa12386ba64e666 /test
parent0f36e8fc03a5c6433972d6bb5f177d5f6e106bac (diff)
* time.c (localtime_with_gmtoff_zone): renamed from
localtime_with_gmtoff and return the timezone abbreviation name. (guess_local_offset): return the isdst and timezone abbreviation name. (localtimew): use the returned isdst and timezone abbreviation name. [ruby-core:31275] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_time_tz.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_time_tz.rb b/test/ruby/test_time_tz.rb
index e6b632f2dd..ee87eac0c0 100644
--- a/test/ruby/test_time_tz.rb
+++ b/test/ruby/test_time_tz.rb
@@ -80,6 +80,11 @@ class TestTimeTZ < Test::Unit::TestCase
with_tz(tz="America/Los_Angeles") {
assert_time_constructor(tz, "2007-03-11 03:00:00 -0700", :local, [2007,3,11,2,0,0])
assert_time_constructor(tz, "2007-03-11 03:59:59 -0700", :local, [2007,3,11,2,59,59])
+ #assert_equal("PST", Time.new(-0x1_0000_0000_0000_0000).zone)
+ assert_equal("PST", Time.new(0x1_0000_0000_0000_0000, 1).zone)
+ assert_equal("PDT", Time.new(0x1_0000_0000_0000_0000, 8).zone)
+ assert_equal(false, Time.new(0x1_0000_0000_0000_0000, 1).isdst)
+ assert_equal(true, Time.new(0x1_0000_0000_0000_0000, 8).isdst)
}
end