21#import "OFMessagePackRepresentation.h"
23OF_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;
93@property (readonly, nonatomic)
unsigned short year;
98@property (readonly, nonatomic)
unsigned short localYear;
113@property (readonly, nonatomic)
unsigned short dayOfYear;
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
OFComparisonResult
A result of a comparison.
Definition OFObject.h:58
double OFTimeInterval
A time interval in seconds.
Definition OFObject.h:154
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:42
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
instancetype distantFuture()
Returns a date in the distant future.
Definition OFDate.m:369
unsigned char dayOfMonth
The day of the month of the date.
Definition OFDate.h:73
unsigned char localDayOfMonth
The day of the month of the date in local time.
Definition OFDate.h:78
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
unsigned long microsecond
The microsecond of the date.
Definition OFDate.h:43
instancetype date()
Creates a new OFDate with the current date and time.
Definition OFDate.m:338
unsigned char dayOfWeek
The day of the week of the date.
Definition OFDate.h:103
unsigned short dayOfYear
The day of the year of the date.
Definition OFDate.h:113
unsigned char localMinute
The minute of the date in local time.
Definition OFDate.h:58
OFTimeInterval timeIntervalSince1970
The seconds since 1970-01-01T00:00:00Z.
Definition OFDate.h:123
unsigned short year
The year of the date.
Definition OFDate.h:93
unsigned short localYear
The year of the date in local time.
Definition OFDate.h:98
unsigned char minute
The minute of the date.
Definition OFDate.h:53
instancetype distantPast()
Returns a date in the distant past.
Definition OFDate.m:376
unsigned char hour
The hour of the date.
Definition OFDate.h:63
unsigned char localDayOfWeek
The day of the week of the date in local time.
Definition OFDate.h:108
unsigned char localHour
The hour of the date in local time.
Definition OFDate.h:68
OFTimeInterval timeIntervalSinceNow
The seconds the date is in the future.
Definition OFDate.h:128
unsigned char second
The second of the date.
Definition OFDate.h:48
unsigned short localDayOfYear
The day of the year of the date in local time.
Definition OFDate.h:118
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for handling strings.
Definition OFString.h:143
A protocol for comparing objects.
Definition OFObject.h:1388
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition OFMessagePackRepresentation.h:33