Task

Given the date string "March 7 2009 7:30pm EST", 

output the time 12 hours later in any human-readable format.

As extra credit, display the resulting time in a time zone different from your own.




import Foundation
 
let formatter = DateFormatter()
 
formatter.dateFormat = "MMMM dd yyyy hh:mma zzz"
 
guard let date = formatter.date(from: "March 7 2009 7:30pm EST") else {
  fatalError()
}
 
print(formatter.string(from: date))
print(formatter.string(from: date + 60 * 60 * 12))