Classes that support managing date/time objects for iPhone.
-
SUPDateValue.h
–
manages an object of datatype Date.
-
SUPTimeValue.h
–
manages an object of datatype Time.
-
SUPDateTimeValue.h
–
manages an object of datatype DateTime.
-
SUPDateList.h
–
manages a list of Date objects (the objects cannot be null).
-
SUPTimeList.h
–
manages a list of Time objects (the objects cannot be null).
-
SUPDateTimeList.h
–
manages a list of DateTime objects (the objects cannot be null).
-
SUPNullableDateList.h
–
manages a list of Date objects (the objects can be null).
-
SUPNullableTimeList.h
–
manages a list of Time objects (the objects can be null).
-
SUPNullableDateTimeList.h
–
manages a list of DateTime objects (the objects can be null).
Example 1: To get a Date value from a query result set:
SUPQueryResultSet* resultSet = [TestCRUD_TestCRUDDB executeQuery:query];
for(SUPDataValueList* result in resultSet)
[[SUPDataValue getNullableDate:[result item:2]] description];
Example 2: A method takes Date as a parameter:
-(void)setModifiedOrderDate:(SUPDateValue*) thedate;
SUPDateValue *thedatevalue = [SUPDateValue newInstance];
[thedatevalue setValue:[NSDate date]];
[customer setModifiedOrderDate:thedatevalue];