diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 22:20:24 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 22:20:24 -0700 |
commit | edbe7fc97bab7ff0684053d1be564330689bf3ad (patch) | |
tree | 271db0992a091d68f17f073ba9573c4698f97ce1 /libc/include/time.h | |
parent | 78bf5fc677a2d25d50598b01781eafacdb5e6afe (diff) | |
download | bionic-edbe7fc97bab7ff0684053d1be564330689bf3ad.zip bionic-edbe7fc97bab7ff0684053d1be564330689bf3ad.tar.gz bionic-edbe7fc97bab7ff0684053d1be564330689bf3ad.tar.bz2 |
auto import //branches/master/...@140412
Diffstat (limited to 'libc/include/time.h')
-rw-r--r-- | libc/include/time.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/include/time.h b/libc/include/time.h index 35c2358..fa1da48 100644 --- a/libc/include/time.h +++ b/libc/include/time.h @@ -79,9 +79,28 @@ extern struct tm* gmtime_r(const time_t *timep, struct tm *result); extern char* strptime(const char *buf, const char *fmt, struct tm *tm); extern size_t strftime(char *s, size_t max, const char *format, const struct tm *tm); +/* ANDROID-BEGIN */ +struct strftime_locale { + const char * mon[12]; + const char * month[12]; + const char * wday[7]; + const char * weekday[7]; + const char * X_fmt; + const char * x_fmt; + const char * c_fmt; + const char * am; + const char * pm; + 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); +/* ANDROID-END */ + extern char *ctime(const time_t *timep); extern char *ctime_r(const time_t *timep, char *buf); +extern void tzset(void); + /* global includes */ extern char* tzname[]; extern int daylight; |