Index: src/OFDate.h ================================================================== --- src/OFDate.h +++ src/OFDate.h @@ -199,10 +199,17 @@ * * \return The year of the date */ - (uint16_t)year; +/** + * \brief Returns the year of the date in local time. + * + * \return The year of the date in local time + */ +- (uint16_t)localYear; + /** * \brief Returns the day of the week of the date. * * \return The day of the week of the date */ Index: src/OFDate.m ================================================================== --- src/OFDate.m +++ src/OFDate.m @@ -357,10 +357,15 @@ - (uint16_t)year { GMTIME_RET(tm_year + 1900) } + +- (uint16_t)localYear +{ + LOCALTIME_RET(tm_year + 1900) +} - (uint8_t)dayOfWeek { GMTIME_RET(tm_wday) }