18 #import "OFSerialization.h" 20 OF_ASSUME_NONNULL_BEGIN
76 + (instancetype)dateWithDateString: (
OFString *)
string 93 + (instancetype)dateWithLocalDateString: (
OFString *)
string 149 - initWithDateString: (
OFString *)
string 167 - initWithLocalDateString: (
OFString *)
string 353 OF_ASSUME_NONNULL_END
uint8_t hour()
Returns the hour of the date.
Definition: OFDate.m:462
uint8_t dayOfMonth()
Returns the day of the month.
Definition: OFDate.m:472
uint16_t year()
Returns the year of the date.
Definition: OFDate.m:492
A class for handling strings.
Definition: OFString.h:114
uint16_t dayOfYear()
Returns the day of the year of the date.
Definition: OFDate.m:512
uint8_t localDayOfMonth()
Returns the day of the month of the date in local time.
Definition: OFDate.m:477
of_time_interval_t timeIntervalSinceNow()
Returns the seconds the receiver is in the future.
Definition: OFDate.m:674
of_time_interval_t timeIntervalSince1970()
Returns the seconds since 1970-01-01T00:00:00Z.
Definition: OFDate.m:664
uint16_t localDayOfYear()
Returns the day of the year of the date in local time.
Definition: OFDate.m:517
instancetype date()
Creates a new OFDate with the current date and time.
Definition: OFDate.m:191
A protocol for the creation of copies.
Definition: OFObject.h:914
instancetype distantPast()
Returns a date in the distant past.
Definition: OFDate.m:228
double of_time_interval_t
A time interval in seconds.
Definition: OFObject.h:91
A protocol for comparing objects.
uint8_t dayOfWeek()
Returns the day of the week of the date.
Definition: OFDate.m:502
The root class for all other classes inside ObjFW.
Definition: OFObject.h:379
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:37
A class for storing, accessing and comparing dates.
Definition: OFDate.h:30
A protocol for serializing objects.
Definition: OFSerialization.h:30
instancetype distantFuture()
Returns a date in the distant future.
Definition: OFDate.m:222
uint8_t localMonthOfYear()
Returns the month of the year of the date in local time.
Definition: OFDate.m:487
uint8_t localHour()
Returns the hour of the date in local time.
Definition: OFDate.m:467
uint8_t minute()
Returns the minute of the date.
Definition: OFDate.m:452
uint8_t localDayOfWeek()
Returns the day of the week of the date in local time.
Definition: OFDate.m:507
uint32_t microsecond()
Returns the microsecond of the date.
Definition: OFDate.m:442
uint8_t localMinute()
Returns the minute of the date in local time.
Definition: OFDate.m:457
uint16_t localYear()
Returns the year of the date in local time.
Definition: OFDate.m:497
uint8_t second()
Returns the second of the date.
Definition: OFDate.m:447
uint8_t monthOfYear()
Returns the month of the year of the date.
Definition: OFDate.m:482