summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/time.c b/time.c
index 1e760f6ca5..18bed6d68a 100644
--- a/time.c
+++ b/time.c
@@ -2698,6 +2698,12 @@ rb_time_timespec(VALUE time)
return time_timespec(time, FALSE);
}
+struct timespec
+rb_time_timespec_interval(VALUE num)
+{
+ return time_timespec(num, TRUE);
+}
+
enum {
TMOPT_IN,
TMOPT_MAX_