summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/time.c b/time.c
index 77f42fc89a..3a004f8763 100644
--- a/time.c
+++ b/time.c
@@ -1932,6 +1932,13 @@ time_init_now(rb_execution_context_t *ec, VALUE time, VALUE zone)
}
static VALUE
+time_s_now(rb_execution_context_t *ec, VALUE klass, VALUE zone)
+{
+ VALUE t = time_s_alloc(klass);
+ return time_init_now(ec, t, zone);
+}
+
+static VALUE
time_set_utc_offset(VALUE time, VALUE off)
{
struct time_object *tobj;