I've searched around and am flummoxed by this riddle.
In Swift, Xcode 6.2, these lines work:
let day_seconds = 86400
let one_day_from_now = NSDate(timeIntervalSinceNow:86400)
But the following returns an error:
let day_seconds = 86400
let one_day_from_now = NSDate(timeIntervalSinceNow:day_seconds)
Console output:
"Playground execution failed: /var/folders/4n/88gryr0j2pn318sw_g_mgkgh0000gn/T/lldb/10688/playground625.swift:24:30: error: extra argument 'timeIntervalSinceNow' in call let one_day_from_now = NSDate(timeIntervalSinceNow:day_seconds)"
What's going on here? Why the NSDate trickiness?