summaryrefslogtreecommitdiff
path: root/timev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'timev.rb')
-rw-r--r--timev.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/timev.rb b/timev.rb
index 792d600548..8f20d6673f 100644
--- a/timev.rb
+++ b/timev.rb
@@ -1 +1,11 @@
#
+# call-seq:
+# Time.now -> time
+#
+# Creates a new Time object for the current time.
+# This is same as Time.new without arguments.
+#
+# Time.now #=> 2009-06-24 12:39:54 +0900
+def Time.now(in: nil)
+ __builtin.time_s_now(__builtin.arg!(:in))
+end