如何将epochTime转换为当前本地时间?基本上,在下面的代码中,如何让1和2生成相同的时间?
var epochTime = (NSDate().timeIntervalSince1970)
//1. Convert epochTime to NSDate(). Shows "2016-06-14 22:47:23 +0000\n"
print(NSDate(timeIntervalSince1970: epochTime))
//2. local time using NSDate(). Shows "Jun 14, 2016, 6:47 PM"
NSDate()