1458件ヒット
[1-100件を表示]
(0.239秒)
ライブラリ
- ビルトイン (122)
-
cgi
/ core (12) -
cgi
/ session (36) -
cgi
/ session / pstore (12) - csv (120)
- date (676)
- dbm (12)
- digest (12)
- gdbm (12)
-
json
/ add / date (12) -
json
/ add / date _ time (12) - logger (36)
-
net
/ imap (60) - observer (12)
- open-uri (12)
- openssl (36)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ config _ file (12) -
rubygems
/ source _ index (24) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ user _ interaction (36) - sdbm (12)
- time (36)
-
webrick
/ httpresponse (72) -
yaml
/ dbm (12)
クラス
- Array (12)
- CGI (12)
-
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) - CSV (72)
-
CSV
:: FieldInfo (36) - DBM (12)
- Date (530)
- DateTime (170)
-
Digest
:: Base (12) - Exception (24)
- GDBM (12)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: ConfigFile (12) -
Gem
:: SourceIndex (24) -
Gem
:: SourceInfoCache (12) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - Hash (24)
- Logger (24)
-
Logger
:: Formatter (12) - Module (12)
-
Net
:: IMAP (36) -
Net
:: IMAP :: ContentDisposition (12) -
Net
:: IMAP :: Envelope (12) -
OpenSSL
:: Cipher (12) -
OpenSSL
:: X509 :: CRL (24) -
RDoc
:: Options (12) - Random (36)
- Range (14)
- SDBM (12)
- Time (48)
-
WEBrick
:: HTTPResponse (72) -
YAML
:: DBM (12)
モジュール
-
Gem
:: InstallUpdateOptions (12) -
Gem
:: LocalRemoteOptions (12) - Observable (12)
-
OpenURI
:: Meta (12)
キーワード
- <=> (12)
- == (12)
- === (12)
- [] (12)
-
add
_ observer (12) -
add
_ update _ sources _ option (12) - ajd (12)
- amjd (12)
- append (12)
- asctime (12)
- autoload? (12)
-
backtrace
_ locations (12) - body= (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - convert (36)
- converters (12)
- ctime (12)
- cwday (12)
- cweek (12)
- cwyear (12)
-
datetime
_ format (24) -
datetime
_ format= (12) - day (12)
-
deconstruct
_ keys (4) - downto (12)
- entries (7)
-
force
_ update (12) - friday? (12)
- gregorian (12)
- gregorian? (12)
- header (24)
- hour (12)
- httpdate (24)
- index (12)
-
install
_ update _ defaults _ str (12) - iso8601 (24)
- jd (12)
- jisx0301 (24)
-
last
_ update (12) - ld (12)
- line (12)
- mday (12)
- min (12)
- minute (12)
- mjd (12)
- mon (12)
- month (12)
-
new
_ start (12) -
next
_ update (12) -
next
_ year (12) - offset (12)
- outdated (12)
- param (12)
-
prev
_ day (12) -
prev
_ month (12) -
prev
_ year (12) - rand (36)
- rfc2822 (24)
- rfc3339 (24)
- rfc822 (24)
- saturday? (12)
- sec (12)
-
sec
_ fraction (12) - second (12)
-
second
_ fraction (12) - sort (12)
- start (12)
- step (12)
- strftime (24)
- thursday? (12)
-
to
_ a (7) -
to
_ csv (12) -
to
_ json (24) -
to
_ s (24) -
uid
_ sort (12) -
unconverted
_ fields? (12) - update (168)
-
update
_ sources (12) - updated (36)
- upto (12)
- wday (12)
-
which
_ to _ update (12) -
write
_ headers? (12) - xmlschema (24)
- yday (12)
- year (12)
- zone (12)
検索結果
先頭5件
-
Date
# -(x) -> Rational | Date (38403.0) -
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。
...オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。
@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェクトでも... -
Date
# httpdate -> String (32401.0) -
2616 (1123) で定められた書式の文字列を返します。
2616 (1123) で定められた書式の文字列を返します。 -
Date
# new _ start(start = Date :: ITALY) -> Date (29825.0) -
self を複製して、その改暦日を設定しなおします。 引数を省略した場合は、Date::ITALY (1582年10月15日) になります。
...self を複製して、その改暦日を設定しなおします。
引数を省略した場合は、Date::ITALY (1582年10月15日) になります。
Date.new も参照してください。
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日... -
Date
# next _ year(n = 1) -> Date (29486.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 年数... -
Date
# strftime(format = & # 39;%F& # 39;) -> String (29431.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
# prev _ month(n = 1) -> Date (29408.0) -
n ヶ月前を返します。
...n ヶ月前を返します。
Date#<< も参照してください。
@param n 月数... -
Date
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (29319.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
# start -> Integer (29307.0) -
改暦日をあらわすユリウス日を返します。
...改暦日をあらわすユリウス日を返します。
Date.new も参照してください。... -
Date
# saturday? -> bool (29301.0) -
土曜日なら真を返します。
土曜日なら真を返します。 -
Date
# thursday? -> bool (29301.0) -
木曜日なら真を返します。
木曜日なら真を返します。