lib/by_star/by_week.rb
# For reasoning why I use *args rather than variables here,
# please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use *args rather than variables here,
please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use * args rather than variables here please see the by_year method comments in lib / by_star / by_year . rb
def by_week_Fixnum(week, options={})
      year = options[:year] ? options[:year] : Time.current.year
      start_time = DateTime.commercial year, week, 1, 0, 0, 0, Time.zone.formatted_offset
      between(start_time, (start_time + 1.week).end_of_day, options)
    end
def by_week_Fixnum ( week , options = { } ) year = options [ :year ] ? options [ :year ] : Time . current . year start_time = DateTime . commercial year , week , 1 , 0 , 0 , 0 , Time . zone . formatted_offset between ( start_time , ( start_time + 1 . week ) . end_of_day , options ) end
For reasoning why I use *args rather than variables here,
please see the by_year method comments in lib/by_star/by_year.rb
For reasoning why I use * args rather than variables here please see the by_year method comments in lib / by_star / by_year . rb
# get the time in the current zone from the fixnum week (commercial week)
week
<not_specific>
options
<not_specific>