app/models/studentdb/course.rb
def sdb_course_convert_time(t)
    t = t.to_i
    if (100..430).include?(t)
      t = t + 1200
    elsif (430..1159).include?(t)
      t = t + 1200 if pm_flag.strip == "P"
    elsif (1200..1259).include?(t)
      t = t + 1200
    end
    t
  end
# The SDB does not store times as AM or PM, so this method infers as such:
# * times between 0100 and 0430 are always converted to PM
# * times between 0430 and 1159 are converted to PM only if +pm_flag+ == "P"
# * times between 1200 and 1259 are converted to PM
The SDB does not store times as AM or PM, so this method infers as such:
times between 0100 and 0430 are always converted to PM
times between 0430 and 1159 are converted to PM only if +pm_flag+ == "P"
times between 1200 and 1259 are converted to PM
The SDB does not store times as AM or PM so this method infers as such : times between 0100 and 0430 are always converted to PM times between 0430 and 1159 are converted to PM only if + pm_flag + == " P " times between 1200 and 1259 are converted to PM
def sdb_course_convert_time(t)
    t = t.to_i
    if (100..430).include?(t)
      t = t + 1200
    elsif (430..1159).include?(t)
      t = t + 1200 if pm_flag.strip == "P"
    elsif (1200..1259).include?(t)
      t = t + 1200
    end
    t
  end
def sdb_course_convert_time ( t ) t = t . to_i if ( 100 .. 430 ) . include? ( t ) t = t + 1200 elsif ( 430 .. 1159 ) . include? ( t ) t = t + 1200 if pm_flag . strip == "P" elsif ( 1200 .. 1259 ) . include? ( t ) t = t + 1200 end t end
The SDB does not store times as AM or PM, so this method infers as such:
 times between 0100 and 0430 are always converted to PM
 times between 0430 and 1159 are converted to PM only if +pm_flag+ == "P"
 times between 1200 and 1259 are converted to PM
The SDB does not store times as AM or PM so this method infers as such : times between 0100 and 0430 are always converted to PM times between 0430 and 1159 are converted to PM only if + pm_flag + == " P " times between 1200 and 1259 are converted to PM
t