132件ヒット
[1-100件を表示]
(0.021秒)
種類
- インスタンスメソッド (120)
- 特異メソッド (12)
ライブラリ
- date (120)
-
json
/ add / date (12)
検索結果
先頭5件
-
Date
# downto(min) -> Enumerator (6201.0) -
このメソッドは、step(min, -1){|date| ...} と等価です。
...このメソッドは、step(min, -1){|date| ...} と等価です。
@param min 日付オブジェクト
@see Date#step, Date#upto... -
Date
# upto(max) -> Enumerator (6201.0) -
このメソッドは、step(max, 1){|date| ...} と等価です。
...このメソッドは、step(max, 1){|date| ...} と等価です。
@param max 日付オブジェクト
@see Date#step, Date#downto... -
Date
# to _ json(*args) -> String (6126.0) -
自身を JSON 形式の文字列に変換して返します。
...ら JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param 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 _ date -> Date (6102.0) -
対応する Date オブジェクトを返します。
...対応する Date オブジェクトを返します。... -
Date
# to _ datetime -> DateTime (6102.0) -
対応する DateTime オブジェクトを返します。
...対応する DateTime オブジェクトを返します。... -
Date
# to _ s -> String (6102.0) -
8601 書式の文字列を返します (拡大表記 ('%Y-%m-%d') を使います)。
8601 書式の文字列を返します (拡大表記 ('%Y-%m-%d') を使います)。 -
Date
# to _ time -> Time (6102.0) -
対応する Time オブジェクトを返します。
対応する Time オブジェクトを返します。 -
Date
# downto(min) {|date| . . . } -> self (6101.0) -
このメソッドは、step(min, -1){|date| ...} と等価です。
...このメソッドは、step(min, -1){|date| ...} と等価です。
@param min 日付オブジェクト
@see Date#step, Date#upto... -
Date
# upto(max) {|date| . . . } -> self (6101.0) -
このメソッドは、step(max, 1){|date| ...} と等価です。
...このメソッドは、step(max, 1){|date| ...} と等価です。
@param max 日付オブジェクト
@see Date#step, Date#downto...