sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
ActiveSupport::TimeWithZone#isdst
Returns true if the current time is within Daylight Savings Time for the
specified time zone.
Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)'
Time.zone.parse("2012-5-30").dst? # => true
Time.zone.parse("2012-11-30").dst? # => falseEdit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/time_with_zone.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveSupport--TimeWithZone-isdst-for-pr
# Commit to gitgit add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/time_with_zone.rbgit commit -m "better docs for ActiveSupport::TimeWithZone#isdst"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveSupport--TimeWithZone-isdst-for-pr
hub pull-request
# Celebrate!