るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

Date#new_start(start = Date::ITALY) -> Date (12502.0)

self を複製して、その改暦日を設定しなおします。 引数を省略した場合は、Date::ITALY (1582年10月15日) になります。

...self を複製して、その改暦日を設定しなおします。
引数を省略した場合は、Date::ITALY (1582年10月15日) になります。

Date
.new も参照してください。

@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日...

Date#strftime(format = &#39;%F&#39;) -> String (12326.0)

与えられた雛型で日付を書式づけます。

..., %I, %j, %k, %L, %l,
%M, %m, %N, %n, %P, %p, %Q, %R, %r, %S, %s, %T, %t, %U, %u, %V, %v, %W, %w, %X,
%x, %Y, %y, %Z, %z, %:z, %::z, %:::z, %%, %+

GNU 版にあるような幅指定などもできます。

strftime(3)、および Date.strptime も参照してください。

@param format 書式...

Date#deconstruct_keys(array_of_names_or_nil) -> Hash (12202.0)

パターンマッチに使用する名前と値の Hash を返します。

...r
* :month
* :day
* :yday
* :wday

@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全てをパターンマッチに使用します。

//emlist[例][ruby]{
d = Date.new(2022, 10, 5)

if d in wday: 3, day: ..7 # deconstruct...
...使われます
puts "first Wednesday of the month"
end
#=> "first Wednesday of the month" が出力される

case d
in year: ...2022
puts "too old"
in month: ..9
puts "quarter 1-3"
in wday: 1..5, month:
puts "working day in month #{month}"
end
#=> "working day in month 10" が出力され...
...

# クラスのチェックと組み合わせて利用することもできます
if d in Date(wday: 3, day: ..7)
puts "first Wednesday of the month"
end
//}

@see d:spec/pattern_matching#matching_non_primitive_objects...

Date#next_year(n = 1) -> Date (12202.0)

n 年後を返します。

...します。

//emlist[例][ruby]{
r
equire 'date'
Date
.new(2001,2,3).next_year #=> #<Date: 2002-02-03 ...>
Date
.new(2008,2,29).next_year #=> #<Date: 2009-02-28 ...>
Date
.new(2008,2,29).next_year(4) #=> #<Date: 2012-02-29 ...>
//}

Date
#>> も参照してください。

@param n 年数...

Date#prev_month(n = 1) -> Date (12202.0)

n ヶ月前を返します。

...n ヶ月前を返します。

Date
#<< も参照してください。

@param n 月数...

絞り込み条件を変える

Date#saturday? -> bool (12202.0)

土曜日なら真を返します。

土曜日なら真を返します。

Date#start -> Integer (12202.0)

改暦日をあらわすユリウス日を返します。

...改暦日をあらわすユリウス日を返します。

Date
.new も参照してください。...

Date#thursday? -> bool (12202.0)

木曜日なら真を返します。

木曜日なら真を返します。

Date#cwyear -> Integer (9302.0)

暦週における年を返します。

暦週における年を返します。

Date#step(limit, step = 1) -> Enumerator (9302.0)

ブロックの評価を繰り返します。ブロックは日付オブジェクトをとります。 limit は日付オブジェクトでなければなりません、 また step は非零でなければなりません。

...評価を繰り返します。ブロックは日付オブジェクトをとります。
limit は日付オブジェクトでなければなりません、
また step は非零でなければなりません。

@param limit 日付オブジェクト
@param step 歩幅

@see Date#downto, Date#upto...

絞り込み条件を変える

<< 1 2 3 ... > >>