14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
* file.
*/
#import "OFObject.h"
#import "OFSerialization.h"
@class OFString;
/**
* \brief A class for storing, accessing and comparing dates.
*/
@interface OFDate: OFObject <OFCopying, OFComparing, OFSerialization>
{
int64_t seconds;
|
>
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
* file.
*/
#import "OFObject.h"
#import "OFSerialization.h"
@class OFString;
@class OFConstantString;
/**
* \brief A class for storing, accessing and comparing dates.
*/
@interface OFDate: OFObject <OFCopying, OFComparing, OFSerialization>
{
int64_t seconds;
|
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
- (uint16_t)localDayOfYear;
/**
* \brief Creates a string of the date with the specified format.
*
* See the manpage for strftime for information on the format.
*
* \param fmt The format for the date string
* \return A new, autoreleased OFString
*/
- (OFString*)dateStringWithFormat: (OFString*)fmt;
/**
* \brief Creates a string of the local date with the specified format.
*
* See the manpage for strftime for information on the format.
*
* \param fmt The format for the date string
* \return A new, autoreleased OFString
*/
- (OFString*)localDateStringWithFormat: (OFString*)fmt;
/**
* \brief Returns the earlier of the two dates.
*
* \param date Another date
* \return The earlier date of the two dates
*/
|
|
|
|
|
|
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
- (uint16_t)localDayOfYear;
/**
* \brief Creates a string of the date with the specified format.
*
* See the manpage for strftime for information on the format.
*
* \param format The format for the date string
* \return A new, autoreleased OFString
*/
- (OFString*)dateStringWithFormat: (OFConstantString*)format;
/**
* \brief Creates a string of the local date with the specified format.
*
* See the manpage for strftime for information on the format.
*
* \param format The format for the date string
* \return A new, autoreleased OFString
*/
- (OFString*)localDateStringWithFormat: (OFConstantString*)format;
/**
* \brief Returns the earlier of the two dates.
*
* \param date Another date
* \return The earlier date of the two dates
*/
|