21 #import "OFMessagePackRepresentation.h" 23 OF_ASSUME_NONNULL_BEGIN
35 #ifdef OF_HAVE_CLASS_PROPERTIES 48 @property (readonly, nonatomic)
unsigned char second;
53 @property (readonly, nonatomic)
unsigned char minute;
63 @property (readonly, nonatomic)
unsigned char hour;
68 @property (readonly, nonatomic)
unsigned char localHour;
73 @property (readonly, nonatomic)
unsigned char dayOfMonth;
93 @property (readonly, nonatomic)
unsigned short year;
98 @property (readonly, nonatomic)
unsigned short localYear;
103 @property (readonly, nonatomic)
unsigned char dayOfWeek;
113 @property (readonly, nonatomic)
unsigned short dayOfYear;
135 + (instancetype)
date;
144 + (instancetype)dateWithTimeIntervalSince1970: (
OFTimeInterval)seconds;
152 + (instancetype)dateWithTimeIntervalSinceNow: (
OFTimeInterval)seconds;
172 + (instancetype)dateWithDateString: (
OFString *)string
190 + (instancetype)dateWithLocalDateString: (
OFString *)string
218 - (instancetype)initWithTimeIntervalSince1970: (
OFTimeInterval)seconds
219 OF_DESIGNATED_INITIALIZER;
228 - (instancetype)initWithTimeIntervalSinceNow: (
OFTimeInterval)seconds;
248 - (instancetype)initWithDateString: (
OFString *)string
267 - (instancetype)initWithLocalDateString: (
OFString *)string
345 OF_ASSUME_NONNULL_END
unsigned short year
The year of the date.
Definition: OFDate.h:93
unsigned char localDayOfWeek
The day of the week of the date in local time.
Definition: OFDate.h:108
A protocol for comparing objects.
Definition: OFObject.h:1388
A class for storing, accessing and comparing dates.
Definition: OFDate.h:33
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
unsigned char minute
The minute of the date.
Definition: OFDate.h:53
unsigned char dayOfWeek
The day of the week of the date.
Definition: OFDate.h:103
unsigned char localMinute
The minute of the date in local time.
Definition: OFDate.h:58
unsigned short localYear
The year of the date in local time.
Definition: OFDate.h:98
unsigned char hour
The hour of the date.
Definition: OFDate.h:63
unsigned char localHour
The hour of the date in local time.
Definition: OFDate.h:68
unsigned char monthOfYear
The month of the year of the date.
Definition: OFDate.h:83
unsigned char localMonthOfYear
The month of the year of the date in local time.
Definition: OFDate.h:88
A class for handling strings.
Definition: OFString.h:142
OFComparisonResult
A result of a comparison.
Definition: OFObject.h:58
instancetype distantFuture()
Returns a date in the distant future.
Definition: OFDate.m:369
unsigned short localDayOfYear
The day of the year of the date in local time.
Definition: OFDate.h:118
double OFTimeInterval
A time interval in seconds.
Definition: OFObject.h:154
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition: OFMessagePackRepresentation.h:33
unsigned short dayOfYear
The day of the year of the date.
Definition: OFDate.h:113
instancetype distantPast()
Returns a date in the distant past.
Definition: OFDate.m:376
unsigned long microsecond
The microsecond of the date.
Definition: OFDate.h:43
unsigned char second
The second of the date.
Definition: OFDate.h:48
instancetype date()
Creates a new OFDate with the current date and time.
Definition: OFDate.m:338
A protocol for the creation of copies.
Definition: OFObject.h:1350
OFTimeInterval timeIntervalSinceNow
The seconds the date is in the future.
Definition: OFDate.h:128
unsigned char localDayOfMonth
The day of the month of the date in local time.
Definition: OFDate.h:78
unsigned char dayOfMonth
The day of the month of the date.
Definition: OFDate.h:73
OFTimeInterval timeIntervalSince1970
The seconds since 1970-01-01T00:00:00Z.
Definition: OFDate.h:123