ObjFW
|
A class for storing, accessing and comparing dates. More...
#include <OFDate.h>
A class for storing, accessing and comparing dates.
id OFDate::date | ( | ) | [static, virtual] |
OFDate * OFDate::dateByAddingTimeInterval: | ( | int64_t | sec | ) | [virtual] |
Returns a new date with the specified time interval added.
sec | The seconds after the date |
OFDate * OFDate::dateByAddingTimeInterval:withMicroseconds: | ( | int64_t | sec, |
[withMicroseconds] uint32_t | usec | ||
) | [virtual] |
Returns a new date with the specified time interval added.
sec | The seconds after the date |
usec | The microseconds after the date |
Creates a string of the date with the specified format.
See the manpage for strftime for information on the format.
fmt | The format for the date string |
id OFDate::dateWithTimeIntervalSince1970: | ( | int64_t | sec | ) | [static, virtual] |
sec | The seconds since 1970-01-01T00:00:00Z |
id OFDate::dateWithTimeIntervalSince1970:microseconds: | ( | int64_t | sec, |
[microseconds] uint32_t | usec | ||
) | [static, virtual] |
sec | The seconds since 1970-01-01T00:00:00Z |
usec | The microsecond part of the time |
id OFDate::dateWithTimeIntervalSinceNow: | ( | int64_t | sec | ) | [static, virtual] |
sec | The seconds since now |
id OFDate::dateWithTimeIntervalSinceNow:microseconds: | ( | int64_t | sec, |
[microseconds] uint32_t | usec | ||
) | [static, virtual] |
sec | The seconds since now |
usec | The microsecond part of the time |
uint8_t OFDate::dayOfMonth | ( | ) | [virtual] |
uint8_t OFDate::dayOfWeek | ( | ) | [virtual] |
uint16_t OFDate::dayOfYear | ( | ) | [virtual] |
id OFDate::distantFuture | ( | ) | [static, virtual] |
Returns a date in the distant future. The date is system-dependant.
id OFDate::distantPast | ( | ) | [static, virtual] |
Returns a date in the distant past. The date is system-dependant.
date | Another date |
uint8_t OFDate::hour | ( | ) | [virtual] |
id OFDate::initWithTimeIntervalSince1970: | ( | int64_t | sec | ) | [virtual] |
id OFDate::initWithTimeIntervalSince1970:microseconds: | ( | int64_t | sec, |
[microseconds] uint32_t | usec | ||
) | [virtual] |
id OFDate::initWithTimeIntervalSinceNow: | ( | int64_t | sec | ) | [virtual] |
id OFDate::initWithTimeIntervalSinceNow:microseconds: | ( | int64_t | sec, |
[microseconds] uint32_t | usec | ||
) | [virtual] |
date | Another date |
Creates a string of the local date with the specified format.
See the manpage for strftime for information on the format.
fmt | The format for the date string |
uint8_t OFDate::localDayOfMonth | ( | ) | [virtual] |
uint8_t OFDate::localDayOfWeek | ( | ) | [virtual] |
uint16_t OFDate::localDayOfYear | ( | ) | [virtual] |
uint8_t OFDate::localHour | ( | ) | [virtual] |
uint8_t OFDate::localMonthOfYear | ( | ) | [virtual] |
uint32_t OFDate::microsecond | ( | ) | [virtual] |
uint32_t OFDate::microsecondsOfTimeIntervalSince1970 | ( | ) | [virtual] |
uint32_t OFDate::microsecondsOfTimeIntervalSinceDate: | ( | OFDate* | date | ) | [virtual] |
uint8_t OFDate::minute | ( | ) | [virtual] |
uint8_t OFDate::monthOfYear | ( | ) | [virtual] |
uint8_t OFDate::second | ( | ) | [virtual] |
int64_t OFDate::timeIntervalSince1970 | ( | ) | [virtual] |
int64_t OFDate::timeIntervalSinceDate: | ( | OFDate* | date | ) | [virtual] |
uint16_t OFDate::year | ( | ) | [virtual] |