[swift-corelibs-dev] Fatal error Foundation/NSCalendar.swift, Ubuntu 16.04, Swift 3.0.1

2016-11-30 Thread Malcolm Barclay via swift-corelibs-dev
Hi, Is this a bug in the NSCalendar.swift? On Ubuntu 16.04 with Swift 3.0.1 installed this crashes. import Foundation let fromDate = Date() let toDate = Date(timeIntervalSinceNow: 20) let components = Calendar.current.dateComponents([.second], from: fromDate, to: toDate) Result: fatal error:

Re: [swift-corelibs-dev] Fatal error Foundation/NSCalendar.swift, Ubuntu 16.04, Swift 3.0.1

2016-12-04 Thread Malcolm Barclay via swift-corelibs-dev
cond], from: > fromDate, to: toDate) > // ... >[6] = 20 > // ... > > Regards, > Will Stanton > >> On Nov 30, 2016, at 9:22 AM, Malcolm Barclay via swift-corelibs-dev >> wrote: >> >> Hi, >> >> Is