Created
          March 2, 2015 18:01 
        
      - 
      
- 
        Save m3nd3s/1d2ee854f423f1ca06d7 to your computer and use it in GitHub Desktop. 
Revisions
- 
        m3nd3s created this gist Mar 2, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ file = File.new("/Users/m3nd3s/Desktop/schedule.txt", 'r') begin report = File.open("/Users/m3nd3s/Desktop/report.txt", 'w') while(line = file.gets) cols = line.split(" - ") utc_time = DateTime.parse(cols[0]) br_time = utc_time.in_time_zone('Brasilia') report.puts "#{cols[1].strip}: #{br_time}" end ensure report.close if report end