summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-30 16:38:32 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-30 16:38:32 +0000
commite8c88007403d6892df7464ad443bd6bacab0546d (patch)
tree05fc392080ae4257df67782f72ad344e500307bb /time.c
parentfbfe706aee4f10560f669e48b51a942aaa206e73 (diff)
Add RDoc for kernel functions, and tidy up
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/time.c b/time.c
index 8749025..278f08a 100644
--- a/time.c
+++ b/time.c
@@ -67,6 +67,13 @@ time_modify(time)
}
/*
+ * Document-method: now
+ *
+ * Synonym for <code>Time.new</code>. Returns a +Time+ object
+ * initialized tot he current system time.
+ */
+
+/*
* call-seq:
* Time.new -> time
*
@@ -1780,6 +1787,10 @@ time_s_times(obj)
return rb_proc_times(obj);
}
+/*
+ * undocumented
+ */
+
static VALUE
time_mdump(time)
VALUE time;
@@ -1820,6 +1831,13 @@ time_mdump(time)
return rb_str_new(buf, 8);
}
+/*
+ * call-seq:
+ * time._dump => string
+ *
+ * Dump _time_ for marshaling.
+ */
+
static VALUE
time_dump(argc, argv, time)
int argc;
@@ -1838,6 +1856,10 @@ time_dump(argc, argv, time)
return str;
}
+/*
+ * undocumented
+ */
+
static VALUE
time_mload(time, str)
VALUE time, str;
@@ -1890,6 +1912,13 @@ time_mload(time, str)
return time;
}
+/*
+ * call-seq:
+ * Time._load(string) => time
+ *
+ * Unmarshal a dumped +Time+ object.
+ */
+
static VALUE
time_load(klass, str)
VALUE klass, str;