962件ヒット
[1-100件を表示]
(0.097秒)
種類
- インスタンスメソッド (530)
- 特異メソッド (396)
- 定数 (36)
ライブラリ
- date (938)
-
json
/ add / date (24)
キーワード
- - (12)
- <=> (12)
- === (12)
- ENGLAND (12)
- GREGORIAN (12)
- ITALY (12)
-
_ httpdate (12) -
_ iso8601 (12) -
_ jisx0301 (12) -
_ parse (12) -
_ rfc2822 (12) -
_ rfc3339 (12) -
_ rfc822 (12) -
_ strptime (12) -
_ xmlschema (12) - ajd (12)
- amjd (12)
- asctime (12)
- civil (12)
- commercial (12)
- ctime (12)
- cwday (12)
- cweek (12)
- cwyear (12)
- day (12)
-
deconstruct
_ keys (2) - downto (12)
- friday? (12)
- gregorian (12)
- gregorian? (12)
-
gregorian
_ leap? (12) - httpdate (24)
- iso8601 (24)
- jd (24)
- jisx0301 (24)
-
json
_ create (12) -
julian
_ leap? (12) - ld (12)
- leap? (12)
- mday (12)
- mjd (12)
- mon (12)
- month (12)
- new (12)
-
new
_ start (12) -
next
_ year (12) - ordinal (12)
- parse (12)
-
prev
_ day (12) -
prev
_ month (12) -
prev
_ year (12) - rfc2822 (24)
- rfc3339 (24)
- rfc822 (24)
- saturday? (12)
- start (12)
- step (12)
- strftime (12)
- strptime (12)
- thursday? (12)
-
to
_ json (12) -
to
_ s (12) - today (12)
- upto (12)
-
valid
_ civil? (12) -
valid
_ commercial? (12) -
valid
_ date? (12) -
valid
_ jd? (12) -
valid
_ ordinal? (12) - wday (12)
- xmlschema (24)
- yday (12)
- year (12)
検索結果
先頭5件
-
Date
# cwyear -> Integer (6201.0) -
暦週における年を返します。
暦週における年を返します。 -
Date
# new _ start(start = Date :: ITALY) -> Date (6201.0) -
self を複製して、その改暦日を設定しなおします。 引数を省略した場合は、Date::ITALY (1582年10月15日) になります。
...self を複製して、その改暦日を設定しなおします。
引数を省略した場合は、Date::ITALY (1582年10月15日) になります。
Date.new も参照してください。
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日... -
Date
# year -> Integer (6201.0) -
年を返します。
年を返します。 -
Date
# strftime(format = & # 39;%F& # 39;) -> String (6113.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
. _ strptime(str , format = & # 39;%F& # 39;) -> Hash (6113.0) -
このメソッドは Date.strptime と似ていますが、日付オブジェクトを生成せずに、 見いだした要素をハッシュで返します。
...このメソッドは Date.strptime と似ていますが、日付オブジェクトを生成せずに、
見いだした要素をハッシュで返します。
@param str 日付をあらわす文字列
@param format 書式文字列
書式文字列に使用できるものは以下の通りです......。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* %d: 日(01-31......前または午後(am,pm)
* %p: 午前または午後(AM,PM)
* %Q: 1970-01-01 00:00:00 UTC からの経過ミリ秒
* %R: 24時間制の時刻。%H:%M と同等。
* %r: 12時間制の時刻。%I:%M:%S %p と同等。
* %S: 秒(00-60) (60はうるう秒)
* %s: 1970-01-01 00:00:00 UTC か... -
Date
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (6101.0) -
パターンマッチに使用する名前と値の Hash を返します。
...ear
* :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 # deconstru......ys が使われます
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
# friday? -> bool (6101.0) -
金曜日なら真を返します。
金曜日なら真を返します。 -
Date
# gregorian -> Date (6101.0) -
このメソッドは、new_start(Date::GREGORIAN) と等価です。
...このメソッドは、new_start(Date::GREGORIAN) と等価です。
Date#new_start、および Date::GREGORIAN を参照してください。... -
Date
# gregorian? -> bool (6101.0) -
グレゴリオ暦なら真を返します。
グレゴリオ暦なら真を返します。 -
Date
# next _ year(n = 1) -> Date (6101.0) -
n 年後を返します。
...します。
//emlist[例][ruby]{
require '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 年数...