21#import "OFMessagePackRepresentation.h"
23OF_ASSUME_NONNULL_BEGIN
35#ifdef OF_HAVE_CLASS_PROPERTIES
43@property (readonly, nonatomic)
unsigned long microsecond;
48@property (readonly, nonatomic)
unsigned char second;
53@property (readonly, nonatomic)
unsigned char minute;
58@property (readonly, nonatomic)
unsigned char localMinute;
63@property (readonly, nonatomic)
unsigned char hour;
68@property (readonly, nonatomic)
unsigned char localHour;
73@property (readonly, nonatomic)
unsigned char dayOfMonth;
83@property (readonly, nonatomic)
unsigned char monthOfYear;
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;
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:373
unsigned char dayOfMonth
The day of the month of the date.
Definition OFDate.m:612
unsigned char localDayOfMonth
The day of the month of the date in local time.
Definition OFDate.m:617
unsigned char monthOfYear
The month of the year of the date.
Definition OFDate.m:622
unsigned char localMonthOfYear
The month of the year of the date in local time.
Definition OFDate.m:627
unsigned long microsecond
The microsecond of the date.
Definition OFDate.m:580
instancetype date()
Creates a new OFDate with the current date and time.
Definition OFDate.m:342
unsigned char dayOfWeek
The day of the week of the date.
Definition OFDate.m:642
unsigned short dayOfYear
The day of the year of the date.
Definition OFDate.m:652
unsigned char localMinute
The minute of the date in local time.
Definition OFDate.m:597
OFTimeInterval timeIntervalSince1970
The seconds since 1970-01-01T00:00:00Z.
Definition OFDate.m:782
unsigned short year
The year of the date.
Definition OFDate.m:632
unsigned short localYear
The year of the date in local time.
Definition OFDate.m:637
unsigned char minute
The minute of the date.
Definition OFDate.m:592
instancetype distantPast()
Returns a date in the distant past.
Definition OFDate.m:380
unsigned char hour
The hour of the date.
Definition OFDate.m:602
unsigned char localDayOfWeek
The day of the week of the date in local time.
Definition OFDate.m:647
unsigned char localHour
The hour of the date in local time.
Definition OFDate.m:607
OFTimeInterval timeIntervalSinceNow
The seconds the date is in the future.
Definition OFDate.m:792
unsigned char second
The second of the date.
Definition OFDate.m:587
unsigned short localDayOfYear
The day of the year of the date in local time.
Definition OFDate.m:657
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:1392
A protocol for the creation of copies.
Definition OFObject.h:1354
A protocol implemented by classes that support encoding to a MessagePack representation.
Definition OFMessagePackRepresentation.h:33