aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_time_tz.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable more Time TZ tests on OpenBSDJeremy Evans2019-08-201-1/+1
|
* Removed unused variables and methodsNobuyoshi Nakada2019-07-291-5/+1
|
* Initialize DST flagNobuyoshi Nakada2019-07-271-16/+64
| | | | | * time.c (zone_timelocal): initialize DST flag by asking the timezone object. [Bug #15988]
* Rmove old TestTimeTZ::TZ#abbr attributeNobuyoshi Nakada2019-06-291-1/+1
|
* time.c: added in: option to Time.nownobu2019-04-191-0/+5
| | | | | | | * time.c (time_s_now): added in: option to Time.now as well as Time.at. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: support military time zone namesnobu2019-01-071-0/+54
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: UTC and Z timezones should be utcnobu2019-01-071-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: rescue find_timezone when loadingnobu2018-11-281-1/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Try with TZInfo and Timezone gemsnobu2018-11-281-0/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Time.at in: tznobu2018-11-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Timezone at Time.atnobu2018-11-281-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Try Time.find_timezone to convert name to timezonenobu2018-11-281-11/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Try Time.find_timezone to loadnobu2018-11-281-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: added Time::TM#+ and Time::TM#-nobu2018-10-281-9/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update for tzdata-2018fnobu2018-10-261-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: optional arguments of Time::TM#initializenobu2018-10-221-1/+1
| | | | | | | * time.c (tm_initialize): arguments other than year are optional now as Time.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: refactor dummy TZ tests and add another timezonenobu2018-10-211-37/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Load as FIXOFF mode if zone is presentnobu2018-10-121-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add tests for another timezonenobu2018-10-091-14/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for marshalnobu2018-10-081-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed redundant suffix `_with_timezone`nobu2018-10-081-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Timezone at Time#+ and Time#-nobu2018-10-081-0/+6
| | | | | | * time.c (time_add): support for Timezone. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Timezone support by Time [Feature #14850]nobu2018-10-081-0/+60
| | | | | | | | | * strftime.c (rb_strftime): support timezone object by `%z`. * time.c (time_init_1, time_new_timew, time_getlocaltime): accept timezone object as `off`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* No one knows how many leap seconds in year 2100naruse2018-07-161-2/+2
| | | | | | Just check whether leep seconds are considered or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Re-apply r63848 (Optimize Time.utc)naruse2018-07-051-0/+28
| | | | | | | | * Both timegmw and gmtimew ignores leap second if the timezone doesn't have leap seconds on the first call of init_leap_second_info() * Add Bug::Time.reset_leap_second_info for testing git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* skip test_localtime_zone if force_tz_test is falsenaruse2018-07-031-0/+1
| | | | | | | For example Solaris https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10x/ruby-trunk/log/20180703T091803Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* time.c: [DOC] Time#localtimenobu2018-07-021-0/+11
| | | | | | | * time.c: state that Time#localtime does nothing when nothing changes. [ruby-core:87675] [Bug #14880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: Lisbon tzdata fixnobu2018-04-011-0/+1
| | | | | | | | * test/ruby/test_time_tz.rb (gen_variational_zdump_test): Update Lisbon zdump data, which fixed the 1912-01-01 transition for Portugual and its colonies. [Bug #14655] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: Kiritimati tzdata fixnobu2018-04-011-0/+9
| | | | | | | | * test/ruby/test_time_tz.rb (gen_zdump_test): fix the expected data at the Kiritimati's skip of New Year's Eve 1994. [Bug #14655] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: Kiritimati tzdata fixnobu2018-04-011-3/+14
| | | | | | | | * test/ruby/test_time_tz.rb (TestTimeTZ#test_pacific_kiritimati): fix the expected data at the skip of New Year's Eve 1994. [Bug #14655] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: past Japanese DST tzdata fixnobu2018-02-211-1/+1
| | | | | | | * test/ruby/test_time_tz.rb (TestTimeTZ#test_asia_tokyo): fix the expected data at the end of DST. [Bug #14438] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: past Japanese DST tzdata fixnobu2018-02-211-2/+17
| | | | | | | | * test/ruby/test_time_tz.rb (TestTimeTZ#test_asia_tokyo): follow the tzdata 2018 fix of Japanese DST transitions (1948-1951). [ruby-core:85373] [Bug #14438] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: use assert_includenobu2016-07-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_time_tz.rb: Tests depends on Europe/Moscow removedakr2016-04-221-13/+0
| | | | | | | | | | to avoid test failures due to the tzdata change. https://github.com/eggert/tz/commit/8ee11a301cf173afb0c76e0315b9f9ec8ebb9d95 Found by naruse. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: zone encoding should be US-ASCII if all 7-bits. Fix r46907.eregon2015-02-221-0/+1
| | | | | | * test/ruby/test_time.rb, test/ruby/test_time_tz.rb: Update tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refine an assertion message.akr2015-01-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (timelocalw): Set tm_isdst field -1 if vtm->isdst isakr2015-01-061-0/+8
| | | | | | | | | | VTM_ISDST_INITVAL. This bug is introduced at packing struct vtm (r45155). [ruby-core:67345] [Bug #10698] Reported by Boris Ruf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_time_tz.rb: Fix test error with tzdata-2014g.akr2014-09-221-27/+72
| | | | | | | | [ruby-core:65058] [Bug #10245] Reported by Vit Ondruch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: have_tz_offset?nobu2014-09-081-3/+3
| | | | | | | * test/ruby/test_time_tz.rb (TestTimeTZ::Util#have_tz_offset?): append ?-suffix as a predicate method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: right timezonenobu2014-09-081-12/+21
| | | | | | | * test/ruby/test_time_tz.rb (has_right_tz): check if right timezones are installed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: has_lisbon_tznobu2014-08-181-1/+6
| | | | | | | * test/ruby/test_time_tz.rb (has_lisbon_tz): separate from has_right_tz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/minitest/test_minitest_unit.rb: removed obsoleted conditionhsbt2014-08-091-8/+2
| | | | | | | for Ruby 1.8. * test/ruby/test_time_tz.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: get rid of warnings.usa2014-03-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add freebsd to force_tz_testnaruse2012-12-071-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Canada/Newfoundland was renamed to America/St_Johnsnaruse2012-12-071-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_time_tz.rb (TestTimeTZ): run TZ tests on Mac OS X,nobu2012-04-181-8/+18
| | | | | | except for "right" timezonez. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* split method definitionsnobu2012-04-181-6/+11
| | | | | | | * test/ruby/test_time_tz.rb (TestTimeTZ#with_tz, TestTimeTZ#time_to_s): split method definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (guess_local_offset): use the UTC offset of an older date onakr2010-07-141-1/+6
| | | | | | | 64bit time_t environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (localtime_with_gmtoff_zone): renamed fromakr2010-07-141-0/+5
| | | | | | | | | | 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