NSDate(Extra)
@interface NSDate (Extra)
NSDate(Extra)
-
Returns a date object initialized by string format with RFC3339 standard.
Declaration
Objective-C
+ (NSDate *)dateWithRFC3339String:(NSString *)string;
Swift
/*not inherited*/ init!(rfc3339String string: String!)
Parameters
string
A string representation of the date object.
Return Value
NSDate
-
Returns a string object date initialized by string format with local time zone.
Declaration
Objective-C
- (NSString *)toDateWithFormat:(NSString *)string;
Swift
func toDate(withFormat string: String!) -> String!
Parameters
string
A string representation of the date object.
Return Value
NSString
-
A string representation of the date object.
Declaration
Objective-C
- (NSString *)toRFC3339;
Swift
func toRFC3339() -> String!
Return Value
NSString
-
A string representation of the date object with time zone.
Declaration
Objective-C
- (NSString *)toRFC3339TimeZone;
Swift
func toRFC3339TimeZone() -> String!
Return Value
NSString