From 3a936a4980046a7eeb8d53a3296058d8f3a1f770 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 11 Sep 2012 11:15:53 -0700 Subject: Add the libcutils localtime_tz and mktime_t extensions to bionic. Bug: 7012465 Change-Id: Ib66f061e29199ba134545111dc79f9b50c8f4a21 --- libc/private/bionic_time.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libc/private') diff --git a/libc/private/bionic_time.h b/libc/private/bionic_time.h index ee82254..464ab0f 100644 --- a/libc/private/bionic_time.h +++ b/libc/private/bionic_time.h @@ -49,7 +49,12 @@ struct strftime_locale { const char * date_fmt; }; -extern size_t strftime_tz(char *s, size_t max, const char *format, const struct tm *tm, const struct strftime_locale* lc); +/* + * Note: you should consider these extensions deprecated and use managed code or icu4c instead. + */ +extern size_t strftime_tz(char* s, size_t max, const char* format, const struct tm* tm, const struct strftime_locale* lc); +extern time_t mktime_tz(struct tm* const tmp, char const* tz); +extern void localtime_tz(const time_t* const timep, struct tm* tmp, const char* tz); #endif /* _BIONIC_STRFTIME_TZ_DECLARED */ -- cgit v1.1