Samond Classes Library 1.2.6-STABLE build 219
List of all members
NSDate(SCDate) Category Reference

Standard class NSDate functionality extending category. More...

#import <NSDate+SCDate.h>

Creating Dates

(instancetype) + dateWithCoder:
 
(instancetype) + dateWithContentsOfSerializedFile:
 
(instancetype) + dateWithDataDictionary:
 
(instancetype) + dateWithDataDictionaryFromFile:
 
(instancetype) + dateWithStream:
 
(instancetype) + dateWithFileStream:
 
(instancetype) + dateWithData:
 
(instancetype) + dateWithContentsOfFile:
 
(instancetype) + dateWithContentsOfURL:
 
(instancetype) + dateWithContentsOfURLString:
 

Detailed Description

Standard class NSDate functionality extending category.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.1.6

Declares the additional methods for add into the standard class NSDate the additional functionality, such as dictionaries, collections and streans support and so on.

Method Documentation

+ (instancetype) dateWithCoder: (NSCoder *)  coder

Returns a date created by using the data from the specified coder.

Parameters
coder- the source coder
Returns
A created date
+ (instancetype) dateWithContentsOfFile: (NSString *)  path

Returns a date created by using the file with the specified path.

Parameters
path- the path to the source file
Returns
A created date
+ (instancetype) dateWithContentsOfSerializedFile: (NSString *)  path

Returns a date created by using the data from the serialized file with the specified path.

Parameters
path- the path to the serialized file
Returns
A created date
+ (instancetype) dateWithContentsOfURL: (NSURL *)  url

Returns a date created by using the specified URL.

Parameters
url- the source URL
Returns
A created date
+ (instancetype) dateWithContentsOfURLString: (NSString *)  urlString

Returns a date created by using the data from the URL with the specified string.

Parameters
urlString- the string of the source URL
Returns
A created date
+ (instancetype) dateWithData: (NSData *)  data

Returns a date created by using the specified data object.

Parameters
data- the source data object
Returns
A created date
+ (instancetype) dateWithDataDictionary: (NSDictionary *)  dictionary

Returns a date created by using the data from the specified data dictionary.

Parameters
dictionary- the source data dictionary
Returns
A created date
+ (instancetype) dateWithDataDictionaryFromFile: (NSString *)  path

Returns a date created by using the data from the dictionary file with the specified path.

Parameters
path- the path to the source dictionary file
Returns
A created date
+ (instancetype) dateWithFileStream: (NSString *)  path

Returns a date created by using the data from the file stream with the specified path.

Parameters
path- the path to the source file stream
Returns
A created date
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (instancetype) dateWithStream: (SCStream *)  stream

Returns a date created by using the data from the specified stream.

Parameters
stream- the source stream
Returns
A created date
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected

The documentation for this category was generated from the following files: