Differences From Artifact [3a586242e7]:
- File
src/OFDate.h
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 9165) [annotate] [blame] [check-ins using]
To Artifact [7fa1e30f2a]:
- File
src/OFDate.h
— part of check-in
[e4439b7ef8]
at
2016-09-11 22:03:20
on branch trunk
— OFDate: Add support for parsing time zones
This adds %z for parsing time zones. Additionally, this also adds %a and
%b. (user: js, size: 9209) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
62 63 64 65 66 67 68 | * * The time zone used is UTC. See @ref dateWithLocalDateString:format: if you * want local time. * * See the manpage for strftime for information on the format. * * @warning The format is currently limited to the following format specifiers: | | > | > | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | * * The time zone used is UTC. See @ref dateWithLocalDateString:format: if you * want local time. * * See the manpage for strftime for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%a, %%b, %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%z, %%, %%n and * %%t. * * @param string The string describing the date * @param format The format of the string describing the date * @return A new, autoreleased OFDate with the specified date and time */ + (instancetype)dateWithDateString: (OFString*)string format: (OFString*)format; /*! * @brief Creates a new OFDate with the specified string in the specified * format. * * See the manpage for strftime for information on the format. * * @warning The format is currently limited to the following format specifiers: * %%a, %%b, %%d, %%e, %%H, %%m, %%M, %%S, %%y, %%Y, %%z, %%, %%n and * %%t. * * @param string The string describing the date * @param format The format of the string describing the date * @return A new, autoreleased OFDate with the specified date and time */ + (instancetype)dateWithLocalDateString: (OFString*)string format: (OFString*)format; |
︙ | ︙ |