From ee58c638b8d10d2ea10faadbc7b34515d2f2e351 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Oct 2018 02:35:31 +0000 Subject: 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 --- timev.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'timev.h') diff --git a/timev.h b/timev.h index 9f8eb53e49..d9d84b6d1c 100644 --- a/timev.h +++ b/timev.h @@ -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 -- cgit v1.2.1