種類
ライブラリ
- ビルトイン (1406)
- base64 (10)
- benchmark (110)
-
cgi
/ core (20) -
cgi
/ session (10) -
cgi
/ util (10) - csv (40)
- date (420)
-
drb
/ timeridconv (40) - etc (100)
- expect (20)
-
fiddle
/ import (10) - fileutils (30)
-
io
/ console (20) -
io
/ wait (30) -
json
/ add / date _ time (20) -
json
/ add / time (20) - logger (77)
-
minitest
/ unit (2) - mkmf (10)
- monitor (14)
-
net
/ ftp (74) -
net
/ http (140) -
net
/ imap (30) -
net
/ pop (40) -
net
/ protocol (25) -
net
/ smtp (40) - objspace (10)
- observer (10)
- open-uri (10)
- openssl (410)
- optparse (40)
- pathname (49)
- profiler (6)
- psych (10)
-
racc
/ parser (10) - rake (70)
- resolv (10)
-
rinda
/ tuplespace (20) -
rubygems
/ package / tar _ header (10) -
rubygems
/ remote _ fetcher (10) -
rubygems
/ security (10) -
rubygems
/ specification (40) -
rubygems
/ timer (10) - shell (36)
-
shell
/ command-processor (36) -
shell
/ filter (36) - socket (276)
-
syslog
/ logger (20) - thread (2)
- time (140)
- timeout (67)
-
webrick
/ accesslog (20) -
webrick
/ httprequest (10) -
webrick
/ httpresponse (10) -
webrick
/ httpservlet / filehandler (10) -
webrick
/ httpstatus (40) -
webrick
/ log (20) -
win32
/ registry (40) - win32ole (40)
- zlib (20)
クラス
- Array (10)
-
Benchmark
:: Tms (80) - CGI (30)
-
CGI
:: Cookie (30) -
CGI
:: Session (10) - CSV (40)
-
DRb
:: TimerIdConv (30) - Data (2)
- Date (70)
- DateTime (330)
- File (94)
-
File
:: Stat (40) -
Gem
:: Package :: TarHeader (10) -
Gem
:: RemoteFetcher (10) -
Gem
:: Security :: Policy (10) -
Gem
:: Specification (40) - IO (80)
- Integer (20)
- Logger (47)
-
Logger
:: Formatter (30) -
MiniTest
:: Unit (2) - Monitor (4)
-
MonitorMixin
:: ConditionVariable (10) - Mutex (2)
-
Net
:: FTP (50) -
Net
:: FTP :: MLSxEntry (24) -
Net
:: HTTP (110) -
Net
:: IMAP (30) -
Net
:: POP3 (40) -
Net
:: SMTP (40) - Object (20)
-
OpenSSL
:: ASN1 :: GeneralizedTime (20) -
OpenSSL
:: ASN1 :: UTCTime (20) -
OpenSSL
:: OCSP :: BasicResponse (20) -
OpenSSL
:: PKCS7 :: SignerInfo (10) -
OpenSSL
:: SSL :: SSLContext (50) -
OpenSSL
:: SSL :: Session (40) -
OpenSSL
:: X509 :: CRL (40) -
OpenSSL
:: X509 :: Certificate (40) -
OpenSSL
:: X509 :: Revoked (20) -
OpenSSL
:: X509 :: Store (10) -
OpenSSL
:: X509 :: StoreContext (10) - OptionParser (40)
- Pathname (49)
-
Process
:: Tms (80) -
Psych
:: ScalarScanner (10) -
Racc
:: Parser (10) -
Rake
:: EarlyTime (20) -
Rake
:: FileCreationTask (10) -
Rake
:: FileTask (10) -
Rake
:: Task (10) - Random (30)
-
Resolv
:: DNS (10) -
Rinda
:: TupleEntry (20) - Shell (36)
-
Shell
:: CommandProcessor (36) -
Shell
:: Filter (36) - Socket (140)
-
Socket
:: AncillaryData (10) - String (20)
-
Syslog
:: Logger (10) -
Syslog
:: Logger :: Formatter (10) - TCPSocket (6)
- Thread (10)
-
Thread
:: ConditionVariable (10) -
Thread
:: Mutex (8) - Time (902)
- UnboundMethod (10)
-
WEBrick
:: Cookie (20) -
WEBrick
:: HTTPRequest (10) -
WEBrick
:: HTTPResponse (10) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (10) -
WEBrick
:: Log (20) -
WIN32OLE
_ TYPE (10) -
WIN32OLE
_ VARIANT (10) -
Win32
:: Registry (40) -
Zlib
:: GzipFile (10) -
Zlib
:: GzipWriter (10)
モジュール
- Base64 (10)
- Benchmark (30)
- Etc (100)
-
Fiddle
:: Importer (10) -
File
:: Constants (10) - FileUtils (20)
-
GC
:: Profiler (40) - Kernel (100)
- ObjectSpace (10)
-
OpenSSL
:: ASN1 (60) -
OpenSSL
:: OCSP (10) -
OpenSSL
:: X509 (20) -
OpenURI
:: Meta (10) - Process (170)
- Rake (10)
-
Socket
:: Constants (120) - Timeout (17)
-
WEBrick
:: AccessLog (10) -
WEBrick
:: HTTPStatus (20) -
WIN32OLE
:: VARIANT (10)
キーワード
- % (10)
- * (20)
- + (10)
- - (20)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (10) - <=> (20)
- AccessLog (10)
- ArgumentError (10)
-
CLF
_ TIME _ FORMAT (10) -
CLOCK
_ BOOTTIME (10) -
CLOCK
_ BOOTTIME _ ALARM (10) -
CLOCK
_ MONOTONIC (10) -
CLOCK
_ PROCESS _ CPUTIME _ ID (10) -
CLOCK
_ REALTIME (10) -
CLOCK
_ REALTIME _ ALARM (10) -
CLOCK
_ REALTIME _ COARSE (10) -
CLOCK
_ REALTIME _ FAST (10) -
CLOCK
_ REALTIME _ PRECISE (10) -
CLOCK
_ THREAD _ CPUTIME _ ID (10) -
CLOCK
_ UPTIME (10) -
CLOCK
_ UPTIME _ FAST (10) -
CLOCK
_ UPTIME _ PRECISE (10) -
CLOCK
_ UPTIME _ RAW (10) -
CLOCK
_ UPTIME _ RAW _ APPROX (10) - Converters (10)
- Cookie (10)
- DateTime (10)
- DateTimeMatcher (10)
- EARLY (10)
- ETIME (10)
- ETIMEDOUT (10)
- EarlyTime (10)
- Error (10)
- FORMAT (20)
- FileUtils (10)
- Float (10)
- GENERALIZEDTIME (10)
- GatewayTimeout (10)
- GeneralizedTime (30)
- HTTPGatewayTimeOut (10)
- HTTPGatewayTimeout (5)
- HTTPRequestTimeOut (10)
- HTTPRequestTimeout (5)
-
IFF
_ DISABLE _ NETPOLL (20) -
IP
_ TTL (20) -
NEWS for Ruby 2
. 0 . 0 (10) -
NEWS for Ruby 2
. 2 . 0 (9) -
NEWS for Ruby 2
. 3 . 0 (8) -
NEWS for Ruby 2
. 4 . 0 (7) -
NEWS for Ruby 2
. 5 . 0 (6) -
NEWS for Ruby 2
. 6 . 0 (5) -
NEWS for Ruby 2
. 7 . 0 (4) -
NEWS for Ruby 3
. 0 . 0 (3) -
NEWS for Ruby 3
. 1 . 0 (2) - NOATIME (10)
- NOTIME (10)
- OCSP (10)
- Observable (10)
- OpenTimeout (10)
-
PC
_ TIMESTAMP _ RESOLUTION (10) -
Profiler
_ _ (6) -
RC
_ GATEWAY _ TIMEOUT (10) -
RC
_ REQUEST _ TIMEOUT (10) - Random (10)
- ReadTimeout (10)
- RequestTimeout (10)
- Ruby用語集 (10)
- RuntimeError (10)
-
SCM
_ BINTIME (20) -
SCM
_ TIMESTAMP (20) -
SCM
_ TIMESTAMPNS (20) -
SC
_ CPUTIME (10) -
SC
_ DELAYTIMER _ MAX (10) -
SC
_ REALTIME _ SIGNALS (10) -
SC
_ THREAD _ CPUTIME (10) -
SC
_ TIMEOUTS (10) -
SC
_ TIMERS (10) -
SC
_ TIMER _ MAX (10) -
SC
_ XOPEN _ REALTIME (10) -
SC
_ XOPEN _ REALTIME _ THREADS (10) -
SO
_ BINTIME (20) -
SO
_ RCVTIMEO (20) -
SO
_ SNDTIMEO (20) -
SO
_ TIMESTAMP (20) -
SO
_ TIMESTAMPNS (20) -
TCP
_ KEEPIDLE (20) -
TCP
_ KEEPINTVL (20) - TODAY (10)
- Time (10)
- Timeout (10)
- TimeoutError (10)
- TimerIdConv (10)
- UTCTIME (10)
- UTCTime (30)
-
VT
_ DATE (10) -
V
_ ERR _ CERT _ HAS _ EXPIRED (10) -
V
_ ERR _ CERT _ NOT _ YET _ VALID (10) - WIN32OLERuntimeError (10)
- WriteTimeout (5)
- [] (18)
- []= (10)
-
_ dump (10) -
_ strptime (20) - accept (20)
-
add
_ runtime _ dependency (10) -
add
_ status (10) - append (10)
- asctime (20)
- at (41)
- atime (58)
- benchmark (10)
- birthtime (37)
- call (20)
-
catch
_ timer (10) - ceil (4)
- cgi (10)
- civil (10)
-
clock
_ gettime (10) - commercial (10)
-
continue
_ timeout (10) -
continue
_ timeout= (10) - converters (10)
-
count
_ tdata _ objects (10) - create (8)
- cstime (20)
- cstime= (10)
- ctime (78)
- cutime (20)
- cutime= (10)
- date (10)
-
datetime
_ format (20) -
datetime
_ format= (20) - day (10)
-
default
_ event _ sources (10) - define (2)
- drb (10)
-
drb
/ timeridconv (10) - dst? (10)
-
each
_ key (10) - encode64 (10)
- eql? (10)
- expect (20)
- expires (30)
- expires= (30)
- facts (8)
-
fetch
_ path (10) -
fiddle
/ import (10) - floor (4)
-
flush
_ sessions (10) - format (20)
-
format
_ date (10) -
format
_ datetime (10) - formatter (10)
- formatter= (20)
- friday? (10)
- getgm (10)
- getlocal (20)
- getutc (10)
- gm (20)
- gmt? (10)
-
gmt
_ offset (10) - gmtime (10)
- gmtoff (10)
-
handle
_ interrupt (10) - hash (10)
- header (10)
- hour (20)
- httpdate (30)
- inspect (14)
- isdst (10)
- iso8601 (40)
- jd (10)
- jisx0301 (20)
-
json
/ add / date _ time (10) -
json
/ add / time (10) -
json
_ create (20) -
keep
_ alive _ timeout (10) -
keep
_ alive _ timeout= (10) -
last
_ modified (10) -
last
_ update (10) -
last
_ update= (10) - local (20)
- localtime (20)
- lutime (6)
- mday (10)
- min (20)
- minute (10)
- mktime (20)
- modified? (10)
- modify (8)
- mon (10)
- monday? (10)
- month (10)
- mtime (88)
- mtime= (10)
- new (142)
-
new
_ offset (10) -
next
_ update (10) -
next
_ update= (10) -
not
_ after (10) -
not
_ after= (10) -
not
_ before (10) -
not
_ before= (10) -
not
_ modified? (10) - now (20)
- nsec (10)
- offset (10)
- open (3)
-
open
_ timeout (40) -
open
_ timeout= (40) - openssl (10)
-
optparse
/ time (10) - ordinal (10)
- out (10)
- parse (30)
-
parse
_ time (10) - profile (6)
-
racc
_ runtime _ type (10) - rand (30)
- raw (10)
- raw! (10)
-
raw
_ data (10) -
rb
_ thread _ select (1) -
rb
_ thread _ start _ timer (10) -
rb
_ thread _ stop _ timer (10) -
rb
_ thread _ wait _ for (10) -
rb
_ time _ timespec _ new (8) -
rb
_ timespec _ now (8) - rdoc (10)
-
read
_ timeout (40) -
read
_ timeout= (40) - realtime (10)
- reject (20)
-
remove
_ entry _ secure (10) - report (10)
-
request
_ time (10) - result (10)
-
rfc1123
_ date (10) - rfc2822 (30)
- rfc3339 (20)
- rfc822 (30)
- round (10)
- rss (10)
-
ruby 1
. 6 feature (10) -
ruby 1
. 8 . 2 feature (10) -
ruby 1
. 8 . 3 feature (10) -
ruby 1
. 9 feature (10) -
rubygems
/ timer (10) -
runtime
_ dependencies (10) - saturday? (10)
- sec (20)
-
sec
_ fraction (10) - second (10)
-
second
_ fraction (10) - select (20)
-
signed
_ time (10) - sleep (10)
-
source
_ location (10) - sprintf (10)
- sprintf フォーマット (10)
-
ssl
_ timeout (20) -
ssl
_ timeout= (20) -
start
_ time (1) -
start
_ time= (1) - status (10)
- stime (20)
- stime= (10)
- strftime (20)
- strptime (40)
- struct (10)
- subsec (10)
- succ (7)
- sunday? (10)
- tcp (20)
- test (38)
- thursday? (10)
- time2wtime (10)
- time= (40)
-
time
_ format (10) -
time
_ format= (10) - timeofday (10)
- timeout (67)
- timeout= (20)
- timeouts= (10)
- times (30)
-
to
_ a (20) -
to
_ date (10) -
to
_ datetime (20) -
to
_ f (10) -
to
_ i (10) -
to
_ id (10) -
to
_ json (20) -
to
_ obj (10) -
to
_ r (10) -
to
_ s (20) -
to
_ time (20) - today (10)
-
total
_ time (10) - touch (10)
- tsort (10)
- tuesday? (10)
-
tv
_ nsec (10) -
tv
_ sec (10) -
tv
_ usec (10) - usec (10)
- utc (30)
- utc? (10)
-
utc
_ offset (10) - utime (58)
- utime= (10)
-
verify
_ gem (10) - wait (30)
-
wait
_ for _ cond (4) -
wait
_ readable (10) -
wait
_ writable (10) - wday (10)
-
webrick
/ cgi (10) - wednesday? (10)
-
write
_ timeout (5) -
write
_ timeout= (5) - wtime (10)
- wtime2time (10)
- xmlschema (40)
- yaml (10)
- yday (10)
- year (10)
- zone (20)
検索結果
先頭5件
-
time (38060.0)
-
組み込みの Time クラスを拡張します。 日時を表す文字列をパースして Time オブジェクトに変換したり、 逆に Time オブジェクトを RFC などで定められた文字列に 変換する機能を提供します。
...組み込みの Time クラスを拡張します。
日時を表す文字列をパースして Time オブジェクトに変換したり、
逆に Time オブジェクトを RFC などで定められた文字列に
変換する機能を提供します。
* date-time は 2822 で定義されてい......ます。
* HTTP-date は 2616 で定義されています。
* dateTime は XML Schema Part 2: Datatypes (ISO 8601) で定義されています。
* 文字列から Time オブジェクトへの変換では Date._parse により様々な形式を扱えます。... -
Time
. strptime(date , format , now=self . now) -> Time (23248.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...time を用いて Time オブジェクト
に変換します。
require 'time'
Time.strptime('2001-02-03T04:05:06+09:00', '%Y-%m-%dT%H:%M:%S%z')
#=> 2001-02-03 06:05:06 +0900
ブロックを渡すと年の部分をブロックによって変換できます。
require 'time'
Time.strptime......end
}
#=> 1991-05-18 04:13:00 +0900
Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date... -
Time
. strptime(date , format , now=self . now) {|y| . . . } -> Time (23248.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...time を用いて Time オブジェクト
に変換します。
require 'time'
Time.strptime('2001-02-03T04:05:06+09:00', '%Y-%m-%dT%H:%M:%S%z')
#=> 2001-02-03 06:05:06 +0900
ブロックを渡すと年の部分をブロックによって変換できます。
require 'time'
Time.strptime......end
}
#=> 1991-05-18 04:13:00 +0900
Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date... -
OpenSSL
:: SSL :: Session # time -> Time (18208.0) -
セッションが確立された時刻を返します。
...セッションが確立された時刻を返します。
@see OpenSSL::SSL::Session#time=,
OpenSSL::SSL::Session#timeout... -
OpenSSL
:: X509 :: Revoked # time -> Time (18202.0) -
失効した日時を返します。
失効した日時を返します。 -
Kernel
# time(msg , width = 25) { . . . } -> object (18101.0) -
与えられたブロックの実行時間を計測して表示します。
与えられたブロックの実行時間を計測して表示します。
@param msg 表示するメッセージを指定します。
@param width 表示する幅を指定します。
@return ブロックの実行結果を返します。 -
Time
. parse(date , now = Time . now) -> Time (17354.0) -
...date を Date._parse によって
パースして Timeオブジェクトに変換します。
ブロック付きで呼ばれた場合、dateの年はブロックによって変換されます。
require 'time'
Time.parse(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y}
与えられ......当要素が使われます。
require 'time'
time = Time.local(2019, 5, 1)
Time.parse("12:00", time) #=> 2019-05-01 12:00:00 +0900
下位の要素がなかったり壊れていた場合、最小値(1か0)が使われます。
@param date Time オブジェクトに変換可能な文字列......を指定します。
@param now 現在時刻をTime オブジェクトで指定します。
デフォルトはTime.nowとなります。
@raise ArgumentError dateに空文字列を与えた場合、発生します。
なお、1.9.2より前は例外は発生せず... -
Time
. parse(date , now = Time . now) {|year| year } -> Time (17354.0) -
...date を Date._parse によって
パースして Timeオブジェクトに変換します。
ブロック付きで呼ばれた場合、dateの年はブロックによって変換されます。
require 'time'
Time.parse(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y}
与えられ......当要素が使われます。
require 'time'
time = Time.local(2019, 5, 1)
Time.parse("12:00", time) #=> 2019-05-01 12:00:00 +0900
下位の要素がなかったり壊れていた場合、最小値(1か0)が使われます。
@param date Time オブジェクトに変換可能な文字列......を指定します。
@param now 現在時刻をTime オブジェクトで指定します。
デフォルトはTime.nowとなります。
@raise ArgumentError dateに空文字列を与えた場合、発生します。
なお、1.9.2より前は例外は発生せず... -
Time
. iso8601(date) -> Time (17208.0) -
XML Schema で定義されている dateTime として date をパースして Time オブジェクトに変換します。
...いる dateTime として
date をパースして Time オブジェクトに変換します。
date がISO 8601で定義されている形式に準拠していない、
または Time クラスが指定された日時を表現できないときに
ArgumentError が発生します。
Time オブジ......ェクトを ISO8601 形式の文字列にフォーマットする
インスタンスメソッド Time#iso8601, Time#xmlschema もあります。
@param date XML Schema で定義されている dateTime として
パースされる文字列を指定します。
@raise ArgumentError dat......または Time クラスが指定された日時を表現できないとき
に発生します。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t #=> 2008-08-31 12:34:56 +0900
p t.kind_of?(Time) #=> true... -
Time
. xmlschema(date) -> Time (17208.0) -
XML Schema で定義されている dateTime として date をパースして Time オブジェクトに変換します。
...いる dateTime として
date をパースして Time オブジェクトに変換します。
date がISO 8601で定義されている形式に準拠していない、
または Time クラスが指定された日時を表現できないときに
ArgumentError が発生します。
Time オブジ......ェクトを ISO8601 形式の文字列にフォーマットする
インスタンスメソッド Time#iso8601, Time#xmlschema もあります。
@param date XML Schema で定義されている dateTime として
パースされる文字列を指定します。
@raise ArgumentError dat......または Time クラスが指定された日時を表現できないとき
に発生します。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t #=> 2008-08-31 12:34:56 +0900
p t.kind_of?(Time) #=> true...