You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: datetime.rb
    path of file: ./repos/mushroom-observer/app/classes/query/modules
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Helper methods for adding date and
    
  def add_time_condition(col, vals, *joins)
    return unless vals

    add_half_time_condition(true, col, vals[0])
    add_half_time_condition(false, col, vals[1])
    add_joins(*joins)
  end