るりまサーチ

最速Rubyリファレンスマニュアル検索!
132件ヒット [1-100件を表示] (0.021秒)
トップページ > クエリ:to[x] > クラス:Date[x]

別のキーワード

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

ライブラリ

キーワード

検索結果

<< 1 2 > >>

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...
<< 1 2 > >>