diff options
author | Kazuki Tsujimoto <kazuki@callcc.net> | 2022-12-22 13:05:09 +0900 |
---|---|---|
committer | Kazuki Tsujimoto <kazuki@callcc.net> | 2022-12-22 13:05:09 +0900 |
commit | b7bb14b96e7e1923d91787fa5a9ca2e4053431b1 (patch) | |
tree | 70f489b8657559ed0253329f12e5182cfd518e6c | |
parent | 4e6c44e297a7b504f6390446e2e499a7a97a5363 (diff) | |
download | ruby-b7bb14b96e7e1923d91787fa5a9ca2e4053431b1.tar.gz |
Update documentation about Time#deconstruct_keys
-rw-r--r-- | time.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5012,7 +5012,9 @@ time_to_a(VALUE time) * deconstruct_keys(array_of_names_or_nil) -> hash * * Returns a hash of the name/value pairs, to use in pattern matching. - * Possible keys are the same as returned by #to_h. + * Possible keys are: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>, + * <tt>:yday</tt>, <tt>:wday</tt>, <tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>, + * <tt>:subsec</tt>, <tt>:dst</tt>, <tt>:zone</tt>. * * Possible usages: * |