2861件ヒット
[1-100件を表示]
(0.092秒)
ライブラリ
- ビルトイン (227)
-
cgi
/ core (11) -
cgi
/ session (44) -
cgi
/ session / pstore (11) -
cgi
/ util (11) - csv (143)
- date (1496)
- dbm (11)
- digest (11)
- fileutils (33)
- gdbm (11)
-
json
/ add / date (22) -
json
/ add / date _ time (22) - logger (41)
-
net
/ imap (77) - nkf (22)
- observer (11)
- open-uri (11)
- openssl (77)
- psych (17)
-
rubygems
/ commands / update _ command (11) -
rubygems
/ config _ file (22) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ specification (22) -
rubygems
/ user _ interaction (33) - sdbm (11)
- time (132)
-
webrick
/ httpresponse (66) -
webrick
/ ssl (11) - win32ole (11)
-
yaml
/ dbm (11)
クラス
- Array (11)
- CGI (22)
-
CGI
:: Session (11) -
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (11) -
CGI
:: Session :: PStore (11) - CSV (99)
-
CSV
:: FieldInfo (33) - DBM (11)
- Date (1133)
- DateTime (363)
-
Digest
:: Base (11) - Enumerator (5)
- Exception (22)
- GDBM (11)
-
Gem
:: Commands :: UpdateCommand (11) -
Gem
:: ConfigFile (22) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: Specification (22) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - Hash (22)
- Logger (30)
-
Logger
:: Formatter (11) - Module (11)
-
Net
:: IMAP (55) -
Net
:: IMAP :: ContentDisposition (11) -
Net
:: IMAP :: Envelope (11) - Object (11)
-
OpenSSL
:: Cipher (11) -
OpenSSL
:: Digest (11) -
OpenSSL
:: HMAC (11) -
OpenSSL
:: X509 :: CRL (22) -
RDoc
:: Options (11) - Random (33)
- Range (46)
- SDBM (11)
- Time (165)
-
WEBrick
:: HTTPResponse (66) -
YAML
:: DBM (11)
モジュール
- FileUtils (33)
-
Gem
:: InstallUpdateOptions (11) -
Gem
:: LocalRemoteOptions (11) - Kernel (44)
- NKF (22)
- Observable (11)
-
OpenSSL
:: X509 (22) -
OpenURI
:: Meta (11) - Psych (17)
-
WEBrick
:: Config (11) -
WIN32OLE
:: VARIANT (11)
オブジェクト
- ENV (22)
キーワード
- + (11)
- << (11)
- <=> (11)
- == (11)
- === (17)
- >> (11)
- Converters (11)
-
DEFAULT
_ UPDATE _ SOURCES (11) - DateMatcher (11)
- DateTime (11)
- DateTimeMatcher (11)
- ENGLAND (11)
- GREGORIAN (11)
- ITALY (11)
- JULIAN (11)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
NKF
_ RELEASE _ DATE (11) -
RUBY
_ RELEASE _ DATE (11) - SSL (11)
- VERSION (11)
-
VT
_ DATE (11) -
V
_ ERR _ ERROR _ IN _ CRL _ LAST _ UPDATE _ FIELD (11) -
V
_ ERR _ ERROR _ IN _ CRL _ NEXT _ UPDATE _ FIELD (11) - [] (11)
-
_ httpdate (11) -
_ iso8601 (11) -
_ jisx0301 (11) -
_ parse (11) -
_ rfc2822 (11) -
_ rfc3339 (11) -
_ rfc822 (11) -
_ strptime (22) -
_ xmlschema (11) -
add
_ observer (11) -
add
_ update _ sources _ option (11) - ajd (11)
- amjd (11)
- append (11)
- asctime (11)
- autoload? (11)
-
backtrace
_ locations (11) - body= (11)
- chunked= (11)
- civil (22)
- commercial (22)
-
content
_ length (11) -
content
_ length= (11) - convert (33)
- converters (11)
- copy (11)
- cover? (17)
- cp (11)
- ctime (11)
- cwday (11)
- cweek (11)
- cwyear (11)
- date (22)
-
datetime
_ format (22) -
datetime
_ format= (11) - day (11)
- downto (22)
- england (11)
- entries (6)
- eval (22)
-
force
_ update (11) - format (11)
-
format
_ date (11) -
format
_ datetime (11) - friday? (11)
- gregorian (11)
- gregorian? (11)
-
gregorian
_ leap? (11) - header (22)
- hour (11)
- httpdate (55)
- index (11)
-
install
_ update _ defaults _ str (11) - iso8601 (55)
- italy (11)
- jd (33)
- jisx0301 (44)
-
json
_ create (22) - julian (11)
- julian? (11)
-
julian
_ leap? (11) -
last
_ update (11) - ld (11)
- leap? (22)
- line (11)
- mday (11)
- min (11)
- minute (11)
- mjd (11)
- mon (11)
- monday? (11)
- month (11)
-
net
/ smtp (11) - new (41)
-
new
_ offset (11) -
new
_ start (11) - next (11)
-
next
_ day (11) -
next
_ month (11) -
next
_ update (11) -
next
_ year (11) - now (11)
- offset (11)
-
optparse
/ date (11) - ordinal (22)
- outdated (11)
- param (11)
- parse (44)
-
prev
_ day (11) -
prev
_ month (11) -
prev
_ year (11) - produce (5)
- rand (33)
- rdoc (11)
-
rfc1123
_ date (11) - rfc2822 (55)
- rfc3339 (44)
- rfc822 (55)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / outdated _ command (11) -
safe
_ load (17) - saturday? (11)
- sec (11)
-
sec
_ fraction (11) - second (11)
-
second
_ fraction (11) - sort (11)
- sprintf (11)
- start (11)
- step (22)
- strftime (22)
- strptime (44)
- succ (11)
- sunday? (11)
- thursday? (11)
- time (11)
-
to
_ a (6) -
to
_ csv (11) -
to
_ date (22) -
to
_ datetime (22) -
to
_ json (22) -
to
_ s (22) -
to
_ time (11) - today (22)
- tsort (11)
- tuesday? (11)
-
uid
_ sort (11) -
unconverted
_ fields? (11) - update (209)
-
update
_ sources (11) - updated (33)
- upto (22)
- uptodate? (11)
-
valid
_ civil? (11) -
valid
_ commercial? (11) -
valid
_ date? (11) -
valid
_ jd? (11) -
valid
_ ordinal? (11) - validate (11)
- wday (11)
- wednesday? (11)
-
which
_ to _ update (11) -
write
_ headers? (11) - xmlschema (55)
- yaml (11)
- yday (11)
- year (11)
- zone (11)
- リテラル (11)
検索結果
先頭5件
-
Date
# -(x) -> Rational | Date (39202.0) -
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。
@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェクトでもない場合に発生します。 -
Date (38064.0)
-
日付だけでなく時刻も扱える Date のサブクラス DateTime も利用できます。
...る Date のサブクラス DateTime も利用できます。
=== 簡単なつかいかた
//emlist[例][ruby]{
require 'date'
a = Date.new(1993, 2, 24)
b = Date.parse('1993-02-24')
b += 10
b - a #=> 10
b.year #=> 1993
b.strftime('%a') #=> "Sat"
yesterday = Date.today - 1
/... -
Date
. httpdate(str = & # 39;Mon , 01 Jan -4712 00:00:00 GMT& # 39; , start = Date :: ITALY) -> Date (27409.0) -
2616 で定められた書式の日付を解析し、 その情報に基づいて日付オブジェクトを生成します。
...2616 で定められた書式の日付を解析し、
その情報に基づいて日付オブジェクトを生成します。
Date._httpdate も参照してください。
@param str 日付をあらわす文字列
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス... -
Date
# to _ date -> Date (27318.0) -
対応する Date オブジェクトを返します。
...対応する Date オブジェクトを返します。... -
Date
# to _ datetime -> DateTime (27300.0) -
対応する DateTime オブジェクトを返します。
...対応する DateTime オブジェクトを返します。... -
Date
. _ httpdate(str) -> Hash (27222.0) -
このメソッドは Date.httpdate と似ていますが、日付オブジェクトを生成せずに、 見いだした要素をハッシュで返します。
...このメソッドは Date.httpdate と似ていますが、日付オブジェクトを生成せずに、
見いだした要素をハッシュで返します。
Date.httpdate も参照してください。
@param str 日付をあらわす文字列... -
Date
# httpdate -> String (27200.0) -
2616 (1123) で定められた書式の文字列を返します。
2616 (1123) で定められた書式の文字列を返します。 -
Date
. valid _ date?(year , mon , mday , start = Date :: GREGORIAN) -> bool (24315.0) -
正しい暦日付であれば真、そうでないなら偽を返します。
...正しい暦日付であれば真、そうでないなら偽を返します。
Date.jd、および Date.civil も参照してください。
@param year 年
@param mon 月
@param mday 日
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日... -
Date
# <<(n) -> Date (21405.0) -
self より n ヶ月前の日付オブジェクトを返します。 n は数値でなければなりません。
...date'
Date.new(2001,2,3) << 1 #=> #<Date: 2001-01-03 ...>
Date.new(2001,2,3) << -2 #=> #<Date: 2001-04-03 ...>
//}
対応する月に同じ日が存在しない時は、代わりにその月の末日が使われます。
//emlist[][ruby]{
require 'date'
Date.new(2001,3,28) << 1 #=> #<Date......: 2001-02-28 ...>
Date.new(2001,3,31) << 1 #=> #<Date: 2001-02-28 ...>
//}
このことは以下のように、もしかすると予期しない振る舞いをするかもしれません。
//emlist[][ruby]{
require 'date'
Date.new(2001,3,31) << 2 #=> #<Date: 2001-01-31 ...>
Date.new(200......1,3,31) << 1 << 1 #=> #<Date: 2001-01-28 ...>
Date.new(2001,3,31) << 1 << -1 #=> #<Date: 2001-03-28 ...>
//}
Date#prev_month も参照してください。
@param n 月数... -
Date
# >>(n) -> Date (21405.0) -
self から n ヶ月後の日付オブジェクトを返します。 n は数値でなければなりません。
...ruby]{
require 'date'
Date.new(2001,2,3) >> 1 #=> #<Date: 2001-03-03 ...>
Date.new(2001,2,3) >> -2 #=> #<Date: 2000-12-03 ...>
//}
対応する月に同じ日が存在しない時は、代わりにその月の末日が使われます。
//emlist[][ruby]{
require 'date'
Date.new(2001,1,28)......e: 2001-02-28 ...>
Date.new(2001,1,31) >> 1 #=> #<Date: 2001-02-28 ...>
//}
このことは以下のように、もしかすると予期しない振る舞いをするかもしれません。
//emlist[][ruby]{
require 'date'
Date.new(2001,1,31) >> 2 #=> #<Date: 2001-03-31 ...>
Date.new(20......01,1,31) >> 1 >> 1 #=> #<Date: 2001-03-28 ...>
Date.new(2001,1,31) >> 1 >> -1 #=> #<Date: 2001-01-28 ...>
//}
Date#next_month も参照してください。
@param n 月数...