diff options
| author | Eric Fischer <enf@google.com> | 2009-05-12 16:26:16 -0700 |
|---|---|---|
| committer | Eric Fischer <enf@google.com> | 2009-05-14 17:22:20 -0700 |
| commit | 722a5c0462f38827f4097065bfc3826b9e0e9fb4 (patch) | |
| tree | e44fd6f2b06504dd673e3f66917386a120576911 /include | |
| parent | c83cd879d45e667fbb4763f18c908928ee9d67d8 (diff) | |
| download | system_core-722a5c0462f38827f4097065bfc3826b9e0e9fb4.tar.gz system_core-722a5c0462f38827f4097065bfc3826b9e0e9fb4.tar.bz2 system_core-722a5c0462f38827f4097065bfc3826b9e0e9fb4.zip | |
Add support for "standalone months" to tztime's strftime().
The idea here is that some languages need a different form of the month
name in constructions like "January 2" than in "January 2009", since the
one in the "January 2" case really means "of January." So with this change,
a format string of "%-B" will use the standalone month, while "%B" will
continue to use the format month.
Diffstat (limited to 'include')
| -rw-r--r-- | include/cutils/tztime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cutils/tztime.h b/include/cutils/tztime.h index 9b3ece84..69dbc881 100644 --- a/include/cutils/tztime.h +++ b/include/cutils/tztime.h @@ -27,6 +27,7 @@ void localtime_tz(const time_t * const timep, struct tm * tmp, const char* tz); struct strftime_locale { const char *mon[12]; /* short names */ const char *month[12]; /* long names */ + const char *standalone_month[12]; /* long standalone names */ const char *wday[7]; /* short names */ const char *weekday[7]; /* long names */ const char *X_fmt; |
