OSDateTime

Superclass:
NSObject
Declared In:
Dependencies:

OSSystem

Introduction

Date and time manipulation functions

Namespace
OSLibrary
Updated:
sábado, julio 30, 2011


Methods

+dateFromString:

This method parses the input string and generates the NSDate object.

+now

This method return the current date and time with the system locale format

+stringFromDate:

This method generates an string representation from an NSDate.


dateFromString:


This method parses the input string and generates the NSDate object.

+(NSDate*)dateFromString:(NSString*)str; 
Parameters
str

input string

Return Value

NSDate*

Discussion

The string date format is "yyyy-MM-dd'T'HH:mm:ss.SSSZ" UTC


now


This method return the current date and time with the system locale format

+(NSString*)now; 
Return Value

NSString*


stringFromDate:


This method generates an string representation from an NSDate.

+(NSString*)stringFromDate:(NSDate*)date; 
Parameters
date

NSDate object

Return Value

NSString*

Discussion

The string date format is "yyyy-MM-dd'T'HH:mm:ss.SSSZ" UTC