diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-08 02:35:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-08 02:35:31 +0000 |
commit | ee58c638b8d10d2ea10faadbc7b34515d2f2e351 (patch) | |
tree | 7716f26c1b8415e0e639bf093e339cdabb13c5aa /timev.h | |
parent | e0bc5e49ffc1a013705e1e287967139425912974 (diff) | |
download | ruby-ee58c638b8d10d2ea10faadbc7b34515d2f2e351.tar.gz |
Timezone support by Time [Feature #14850]
* strftime.c (rb_strftime): support timezone object by `%z`.
* time.c (time_init_1, time_new_timew, time_getlocaltime): accept
timezone object as `off`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'timev.h')
-rw-r--r-- | timev.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -42,9 +42,12 @@ typedef unsigned LONG_LONG unsigned_time_t; /* strftime.c */ #ifdef RUBY_ENCODING_H VALUE rb_strftime_timespec(const char *format, size_t format_len, rb_encoding *enc, - const struct vtm *vtm, struct timespec *ts, int gmt); + VALUE time, const struct vtm *vtm, struct timespec *ts, int gmt); VALUE rb_strftime(const char *format, size_t format_len, rb_encoding *enc, - const struct vtm *vtm, VALUE timev, int gmt); + VALUE time, const struct vtm *vtm, VALUE timev, int gmt); #endif +/* time.c */ +VALUE rb_time_zone_abbreviation(VALUE zone, VALUE time); + #endif |