lib/by_star/by_fortnight.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_fortnight_Time(time, options={})
      start_time = time.beginning_of_year + (time.strftime("%U").to_i - 1).weeks
      between(start_time, (start_time + 2.weeks).end_of_day, options)
    end
def by_fortnight_Time ( time , options = { } ) start_time = time . beginning_of_year + ( time . strftime ( "%U" ) . to_i - 1 ) . weeks between ( start_time , ( start_time + 2 . weeks ) . 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
# We want to get the current fortnight and so... # We need to find the current week number and take one from it, # so that we are correctly offset from the start of the year. # The first fortnight of the year should of course start on the 1st January, # and not the beginning of that week.
time
<not_specific>
options
<not_specific>