Skip to content

Commit 27086b1

Browse files
author
Robert F. Dickerson
committed
Migrated NSDateComponentsFormatter to new API
1 parent 0847883 commit 27086b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSDateComponentsFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class NSDateComponentsFormatter : NSFormatter {
6161

6262
/* Convenience method for formatting a number of seconds. See 'allowedUnits' for how the default set of allowed units differs from -stringFromDateComponents:.
6363
*/
64-
public func stringFromTimeInterval(_ ti: NSTimeInterval) -> String? { NSUnimplemented() }
64+
public func string(_ from: NSTimeInterval) -> String? { NSUnimplemented() }
6565

6666
public class func localizedStringFromDateComponents(_ components: NSDateComponents, unitsStyle: NSDateComponentsFormatterUnitsStyle) -> String? { NSUnimplemented() }
6767

0 commit comments

Comments
 (0)