3134件ヒット
[1-100件を表示]
(0.055秒)
ライブラリ
- ビルトイン (250)
-
cgi
/ core (12) -
cgi
/ session (48) -
cgi
/ session / pstore (12) -
cgi
/ util (12) - csv (156)
- date (1636)
- dbm (12)
- digest (12)
- fileutils (36)
- gdbm (12)
-
json
/ add / date (24) -
json
/ add / date _ time (24) - logger (45)
-
net
/ imap (84) - nkf (24)
- observer (12)
- open-uri (12)
- openssl (84)
- psych (19)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ config _ file (24) -
rubygems
/ source _ index (24) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ specification (24) -
rubygems
/ user _ interaction (36) - sdbm (12)
- time (144)
-
webrick
/ httpresponse (72) -
webrick
/ ssl (12) - win32ole (12)
-
yaml
/ dbm (12)
クラス
- Array (12)
- CGI (24)
-
CGI
:: Session (12) -
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) - CSV (108)
-
CSV
:: FieldInfo (36) - DBM (12)
- Date (1238)
- DateTime (398)
-
Digest
:: Base (12) - Enumerator (6)
- Exception (24)
- GDBM (12)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: ConfigFile (24) -
Gem
:: SourceIndex (24) -
Gem
:: SourceInfoCache (12) -
Gem
:: Specification (24) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - Hash (24)
- Logger (33)
-
Logger
:: Formatter (12) - Module (12)
-
Net
:: IMAP (60) -
Net
:: IMAP :: ContentDisposition (12) -
Net
:: IMAP :: Envelope (12) - Object (12)
-
OpenSSL
:: Cipher (12) -
OpenSSL
:: Digest (12) -
OpenSSL
:: HMAC (12) -
OpenSSL
:: X509 :: CRL (24) -
RDoc
:: Options (12) - Random (36)
- Range (52)
- SDBM (12)
- Time (180)
-
WEBrick
:: HTTPResponse (72) -
YAML
:: DBM (12)
モジュール
- FileUtils (36)
-
Gem
:: InstallUpdateOptions (12) -
Gem
:: LocalRemoteOptions (12) - Kernel (48)
- NKF (24)
- Observable (12)
-
OpenSSL
:: X509 (24) -
OpenURI
:: Meta (12) - Psych (19)
-
WEBrick
:: Config (12) -
WIN32OLE
:: VARIANT (12)
オブジェクト
- ENV (24)
キーワード
- + (12)
- << (12)
- <=> (12)
- == (12)
- === (19)
- >> (12)
- Converters (12)
-
DEFAULT
_ UPDATE _ SOURCES (12) - DateMatcher (12)
- DateTime (12)
- DateTimeMatcher (12)
- ENGLAND (12)
- GREGORIAN (12)
- ITALY (12)
- JULIAN (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) -
NKF
_ RELEASE _ DATE (12) -
RUBY
_ RELEASE _ DATE (12) - SSL (12)
- VERSION (12)
-
VT
_ DATE (12) -
V
_ ERR _ ERROR _ IN _ CRL _ LAST _ UPDATE _ FIELD (12) -
V
_ ERR _ ERROR _ IN _ CRL _ NEXT _ UPDATE _ FIELD (12) - [] (12)
-
_ httpdate (12) -
_ iso8601 (12) -
_ jisx0301 (12) -
_ parse (12) -
_ rfc2822 (12) -
_ rfc3339 (12) -
_ rfc822 (12) -
_ strptime (24) -
_ xmlschema (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)
- civil (24)
- commercial (24)
-
content
_ length (12) -
content
_ length= (12) - convert (36)
- converters (12)
- copy (12)
- cover? (19)
- cp (12)
- ctime (12)
- cwday (12)
- cweek (12)
- cwyear (12)
- date (24)
-
datetime
_ format (24) -
datetime
_ format= (12) - day (12)
-
deconstruct
_ keys (4) - downto (24)
- england (12)
- entries (7)
- eval (24)
-
force
_ update (12) - format (12)
-
format
_ date (12) -
format
_ datetime (12) - friday? (12)
- gregorian (12)
- gregorian? (12)
-
gregorian
_ leap? (12) - header (24)
- hour (12)
- httpdate (60)
- index (12)
-
install
_ update _ defaults _ str (12) - iso8601 (60)
- italy (12)
- jd (36)
- jisx0301 (48)
-
json
_ create (24) - julian (12)
- julian? (12)
-
julian
_ leap? (12) -
last
_ update (12) - ld (12)
- leap? (24)
- line (12)
- mday (12)
- min (12)
- minute (12)
- mjd (12)
- mon (12)
- monday? (12)
- month (12)
-
net
/ smtp (12) - new (45)
-
new
_ offset (12) -
new
_ start (12) - next (12)
-
next
_ day (12) -
next
_ month (12) -
next
_ update (12) -
next
_ year (12) - now (12)
- offset (12)
-
optparse
/ date (12) - ordinal (24)
- outdated (12)
- param (12)
- parse (48)
-
prev
_ day (12) -
prev
_ month (12) -
prev
_ year (12) - produce (6)
- rand (36)
- rdoc (12)
-
rfc1123
_ date (12) - rfc2822 (60)
- rfc3339 (48)
- rfc822 (60)
- rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / outdated _ command (12) -
safe
_ load (19) - saturday? (12)
- sec (12)
-
sec
_ fraction (12) - second (12)
-
second
_ fraction (12) - sort (12)
- sprintf (12)
- start (12)
- step (24)
- strftime (24)
- strptime (48)
- succ (12)
- sunday? (12)
- thursday? (12)
- time (12)
-
to
_ a (7) -
to
_ csv (12) -
to
_ date (24) -
to
_ datetime (24) -
to
_ json (24) -
to
_ s (24) -
to
_ time (12) - today (24)
- tsort (12)
- tuesday? (12)
-
uid
_ sort (12) -
unconverted
_ fields? (12) - update (228)
-
update
_ sources (12) - updated (36)
- upto (24)
- uptodate? (12)
-
valid
_ civil? (12) -
valid
_ commercial? (12) -
valid
_ date? (12) -
valid
_ jd? (12) -
valid
_ ordinal? (12) - validate (12)
- wday (12)
- wednesday? (12)
-
which
_ to _ update (12) -
write
_ headers? (12) - xmlschema (60)
- yaml (12)
- yday (12)
- year (12)
- zone (12)
- パターンマッチ (3)
- リテラル (12)
検索結果
先頭5件
-
Date
# -(x) -> Rational | Date (39202.0) -
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。 あるいは x が数値ならば、self より x 日前の日付を返します。
x が日付オブジェクトなら、ふたつの差を Rational で返します。単位は日です。
あるいは
x が数値ならば、self より x 日前の日付を返します。
@param x 日数、あるいは日付オブジェクト
@raise TypeError x が数値でも日付オブジェクトでもない場合に発生します。 -
Date (38048.0)
-
日付だけでなく時刻も扱える Time も利用できます。
...=== 簡単なつかいかた
//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
//}
=== 用語の定義
いくつか用語の定義は、860... -
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 月数...