るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.016秒)
トップページ > クエリ:time[x] > クエリ:hash[x] > ライブラリ:json/add/date_time[x]

別のキーワード

  1. time httpdate
  2. time rfc2822
  3. time iso8601
  4. time parse
  5. time strptime

クラス

キーワード

検索結果

DateTime.json_create(hash) -> DateTime (3209.0)

JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

@param hash 適切なキーを持つハッシュを指定します。...

DateTime#to_json(*args) -> String (3020.0)

自身を JSON 形式の文字列に変換して返します。

...erator::GeneratorMethods::Hash#to_json を呼び出しています。

@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。

//emlist[例][ruby]{
require "json/add/core"

DateTime.now.to_json
# => "{\"json_class\":\"DateTime\",\"y\":2018,\"m\":12,\"...
...d\":10,\"H\":1,\"M\":28,\"S\":57,\"of\":\"3/8\",\"sg\":2299161.0}"
//}

@see JSON::Generator::GeneratorMethods::Hash#to_json...