ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:82405] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year)
       [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
@ 2017-08-16 21:17 ` inform
  2017-08-19  3:47 ` [ruby-core:82424] [Ruby trunk Feature#13822][Feedback] Time.dst_changes(t=Time.now.year) nobu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: inform @ 2017-08-16 21:17 UTC (permalink / raw
  To: ruby-core

Issue #13822 has been reported by opti (Andreas Opti).

----------------------------------------
Feature #13822: Time.dst_changes(t=Time.now.year)
https://bugs.ruby-lang.org/issues/13822

* Author: opti (Andreas Opti)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:82424] [Ruby trunk Feature#13822][Feedback] Time.dst_changes(t=Time.now.year)
       [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
  2017-08-16 21:17 ` [ruby-core:82405] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) inform
@ 2017-08-19  3:47 ` nobu
  2017-09-01  3:55 ` [ruby-core:82607] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) naruse
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: nobu @ 2017-08-19  3:47 UTC (permalink / raw
  To: ruby-core

Issue #13822 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Feedback

What are `time1` and `time2`?
If `time1` is the time when DST starts at and `time2` is the time when it ends at, then `time1 > `time2` in the Southern Hemisphere?
And what will return in non-DST timezones?

----------------------------------------
Feature #13822: Time.dst_changes(t=Time.now.year)
https://bugs.ruby-lang.org/issues/13822#change-66232

* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:82607] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year)
       [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
  2017-08-16 21:17 ` [ruby-core:82405] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) inform
  2017-08-19  3:47 ` [ruby-core:82424] [Ruby trunk Feature#13822][Feedback] Time.dst_changes(t=Time.now.year) nobu
@ 2017-09-01  3:55 ` naruse
  2018-12-13  1:18 ` [ruby-core:90468] [Ruby trunk Bug#13822] Time.dst? andrew_kim_2016
  2018-12-13  1:31 ` [ruby-core:90470] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) shyouhei
  4 siblings, 0 replies; 5+ messages in thread
From: naruse @ 2017-09-01  3:55 UTC (permalink / raw
  To: ruby-core

Issue #13822 has been updated by naruse (Yui NARUSE).


Usually Ruby itself doesn't have such information by itself.
It just calls localtime(3).

If you want to have information related timezone database, you should use tzinfo.gem.
https://rubygems.org/gems/tzinfo

----------------------------------------
Feature #13822: Time.dst_changes(t=Time.now.year)
https://bugs.ruby-lang.org/issues/13822#change-66430

* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:90468] [Ruby trunk Bug#13822] Time.dst?
       [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2017-09-01  3:55 ` [ruby-core:82607] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) naruse
@ 2018-12-13  1:18 ` andrew_kim_2016
  2018-12-13  1:31 ` [ruby-core:90470] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) shyouhei
  4 siblings, 0 replies; 5+ messages in thread
From: andrew_kim_2016 @ 2018-12-13  1:18 UTC (permalink / raw
  To: ruby-core

Issue #13822 has been updated by kronikus (ANDREY KIM).

Tracker changed from Feature to Bug
Subject changed from Time.dst_changes(t=Time.now.year) to Time.dst?
ruby -v set to ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
Backport set to 2.4: UNKNOWN, 2.5: UNKNOWN

Is it bug or feature?
Receiving same result for Time.dst? method.
I belive it suppose to base it response on date in variable, correct me if i'm wrong.
Receiving it in Rails 5.1.2, but Time class is in ruby core

gems tzinfo, tzinfo-data are in Gemfile

Time zone configured in rails config: 
2.4.3 :001 > Time.zone
 => #<ActiveSupport::TimeZone:0x000055ac84e61410 @name="Eastern Time (US & Canada)", @utc_offset=nil, @tzinfo=#<TZInfo::DataTimezone: America/New_York>>

2.4.3 :013 > t
 => 2018-12-12 10:00:00 -0500
2.4.3 :014 > a
 => 2018-08-01 10:00:00 -0500
2.4.3 :015 > t.dst?
 => false
2.4.3 :016 > a.dst?
 => false
2.4.3 :017 > t.isdst
 => false
2.4.3 :018 > a.isdst
 => false


----------------------------------------
Bug #13822: Time.dst?
https://bugs.ruby-lang.org/issues/13822#change-75626

* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:90470] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year)
       [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2018-12-13  1:18 ` [ruby-core:90468] [Ruby trunk Bug#13822] Time.dst? andrew_kim_2016
@ 2018-12-13  1:31 ` shyouhei
  4 siblings, 0 replies; 5+ messages in thread
From: shyouhei @ 2018-12-13  1:31 UTC (permalink / raw
  To: ruby-core

Issue #13822 has been updated by shyouhei (Shyouhei Urabe).

Tracker changed from Bug to Feature
Subject changed from Time.dst? to Time.dst_changes(t=Time.now.year) 
ruby -v deleted (ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux])
Backport deleted (2.4: UNKNOWN, 2.5: UNKNOWN)

Be advised: Please do not reuse existing tickets to report something completely different.

Also be advised: please do understand that this is not where ActiveSupport::TimeZone issue should be reported.

----------------------------------------
Feature #13822: Time.dst_changes(t=Time.now.year) 
https://bugs.ruby-lang.org/issues/13822#change-75628

* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-13  1:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-13822.20170816211742@ruby-lang.org>
2017-08-16 21:17 ` [ruby-core:82405] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) inform
2017-08-19  3:47 ` [ruby-core:82424] [Ruby trunk Feature#13822][Feedback] Time.dst_changes(t=Time.now.year) nobu
2017-09-01  3:55 ` [ruby-core:82607] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) naruse
2018-12-13  1:18 ` [ruby-core:90468] [Ruby trunk Bug#13822] Time.dst? andrew_kim_2016
2018-12-13  1:31 ` [ruby-core:90470] [Ruby trunk Feature#13822] Time.dst_changes(t=Time.now.year) shyouhei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).