lib/rspreadsheet/tools.rb in rspreadsheet-0.4.2 vs lib/rspreadsheet/tools.rb in rspreadsheet-0.4.3

- old
+ new

@@ -183,12 +183,16 @@ filename = prefix + ndx.to_s + ((Time.now.to_r*1000000000).to_i.to_s(16)) + extension return filename if zip.find_entry(filename).nil? end raise 'Could not get unused filename within sane times of iterations' end - -end + def self.new_time_value(h,m,s) + Time.new(StartOfEpoch.year,StartOfEpoch.month,StartOfEpoch.day,h,m,s) + end + +end + end # @private class Range def size \ No newline at end of file