Displaying 1 result from an estimated 1 matches for "end_bid_time".
2009 Apr 07
4
/lib daemon folder: how do i add a module into the daemon?
...nth + 27.days
#@current_time = Time.now.beginning_of_month + 13.days
@current_time = Time.now
end
def get_time_period
get_current_time
@absmid = @current_time.beginning_of_month + 14.days
@midperiod = @absmid - 2.days
if @current_time >= @absmid
@begin_bid_time = @absmid
@end_bid_time = @current_time.next_month.beginning_of_month -
2.days
@ad_window_begin = @current_time.next_month.beginning_of_month
@ad_window_end = @current_time.next_month.beginning_of_month +
15.days
else
@begin_bid_time = @current_time.beginning_of_month
@end_bid_time = @midperiod
@ad_...