<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Malcolm,<div class=""><br class=""></div><div class="">Looks like it. If you go ahead and file a JIRA at <a href="http://bugs.swift.org" class="">bugs.swift.org</a>, hopefully someone can take a look.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">- Tony</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 30, 2016, at 6:22 AM, Malcolm Barclay via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">Is this a bug in the NSCalendar.swift? On Ubuntu 16.04 with Swift 3.0.1 installed this crashes.<br class=""><br class="">import Foundation<br class="">let fromDate = Date()<br class="">let toDate = Date(timeIntervalSinceNow: 20)<br class="">let components = Calendar.current.dateComponents([.second], from: fromDate, to: toDate)<br class=""><br class="">Result:<br class=""><br class="">fatal error: file Foundation/NSCalendar.swift, line 615<br class="">fromDate: Foundation.Date = {<br class=""> &nbsp;_time = &lt;extracting data from value failed&gt;<br class=""><br class="">}<br class="">toDate: Foundation.Date = {<br class=""> &nbsp;_time = &lt;extracting data from value failed&gt;<br class=""><br class="">}<br class="">components: Foundation.DateComponents = {<br class=""> &nbsp;_handle = &lt;extracting data from value failed&gt;<br class=""><br class="">}<br class="">Execution interrupted. Enter code to recover and continue.<br class="">Enter LLDB commands to investigate (type :help for assistance.)<br class=""><br class="">Variations of other components also fails, e.g .hour, .minute etc.<br class=""><br class="">Best regards,<br class="">Malcolm<br class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>