2件ヒット
[1-2件を表示]
(0.057秒)
ライブラリ
- date (1)
-
json
/ add / date (1)
検索結果
-
Date
# to _ json(*args) -> String (18682.0) -
自身を JSON 形式の文字列に変換して返します。
...args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Date.today.to_json
# => "{\"json_class\":\"Date\",\"y\":2018,\"m\":12,\"d\":11,\"sg\":2299161.0}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Date
# to _ s -> String (18610.0) -
8601 書式の文字列を返します (拡大表記 ('%Y-%m-%d') を使います)。
8601 書式の文字列を返します (拡大表記 ('%Y-%m-%d') を使います)。