るりまサーチ

最速Rubyリファレンスマニュアル検索!
13件ヒット [1-13件を表示] (0.027秒)

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

ライブラリ

検索結果

Time#to_a -> Array (18109.0)

時刻を10要素の配列で返します。

...6)
- isdst: 夏時間であるかどうか (true/false)
- zone: タイムゾーン (文字列)

```ruby
t = Time.local(2000,1,2,3,4,5)
p t # => 2000-01-02 03:04:05 +0900
p t.to_a # => [5, 4, 3, 2, 1, 2000, 0, 2, false, "JST"]
```

要素の順序は C 言語の tm 構造体に合わせ...