summaryrefslogtreecommitdiff
path: root/timev.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 02:35:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-08 02:35:31 +0000
commitee58c638b8d10d2ea10faadbc7b34515d2f2e351 (patch)
tree7716f26c1b8415e0e639bf093e339cdabb13c5aa /timev.h
parente0bc5e49ffc1a013705e1e287967139425912974 (diff)
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.h7
1 files changed, 5 insertions, 2 deletions
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