summaryrefslogtreecommitdiffstats
path: root/libc/private
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-09-11 11:15:53 -0700
committerElliott Hughes <enh@google.com>2012-09-11 11:15:53 -0700
commit3a936a4980046a7eeb8d53a3296058d8f3a1f770 (patch)
tree774b22cc48683ad5044c4d8046e8ea4679da2f13 /libc/private
parent59726beda5bec7e3db9d0c403a0ef11d0a7f182f (diff)
downloadbionic-3a936a4980046a7eeb8d53a3296058d8f3a1f770.zip
bionic-3a936a4980046a7eeb8d53a3296058d8f3a1f770.tar.gz
bionic-3a936a4980046a7eeb8d53a3296058d8f3a1f770.tar.bz2
Add the libcutils localtime_tz and mktime_t extensions to bionic.
Bug: 7012465 Change-Id: Ib66f061e29199ba134545111dc79f9b50c8f4a21
Diffstat (limited to 'libc/private')
-rw-r--r--libc/private/bionic_time.h7
1 files changed, 6 insertions, 1 deletions
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 */