種類
ライブラリ
- ビルトイン (1553)
- base64 (11)
- benchmark (121)
-
cgi
/ core (22) -
cgi
/ session (11) -
cgi
/ util (11) - csv (44)
- date (462)
-
drb
/ timeridconv (44) - etc (110)
- expect (22)
-
fiddle
/ import (11) - fileutils (33)
-
io
/ console (22) -
io
/ wait (33) -
json
/ add / date _ time (22) -
json
/ add / time (22) - logger (85)
-
minitest
/ unit (2) - mkmf (11)
- monitor (16)
-
net
/ ftp (82) -
net
/ http (156) -
net
/ imap (33) -
net
/ pop (44) -
net
/ protocol (28) -
net
/ smtp (44) - objspace (11)
- observer (11)
- open-uri (11)
- openssl (451)
- optparse (44)
- pathname (54)
- profiler (6)
- psych (11)
-
racc
/ parser (11) - rake (77)
- resolv (11)
-
rinda
/ tuplespace (22) -
rubygems
/ package / tar _ header (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ security (11) -
rubygems
/ specification (44) -
rubygems
/ timer (11) - shell (36)
-
shell
/ command-processor (36) -
shell
/ filter (36) - socket (305)
-
syslog
/ logger (22) - thread (2)
- time (154)
- timeout (74)
-
webrick
/ accesslog (22) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ httpstatus (44) -
webrick
/ log (22) -
win32
/ registry (44) - win32ole (44)
- zlib (22)
クラス
- Array (11)
-
Benchmark
:: Tms (88) - CGI (33)
-
CGI
:: Cookie (33) -
CGI
:: Session (11) - CSV (44)
-
DRb
:: TimerIdConv (33) - Data (4)
- Date (77)
- DateTime (363)
- File (104)
-
File
:: Stat (44) -
Gem
:: Package :: TarHeader (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: Security :: Policy (11) -
Gem
:: Specification (44) - IO (88)
- Integer (22)
- Logger (52)
-
Logger
:: Formatter (33) -
MiniTest
:: Unit (2) - Monitor (5)
-
MonitorMixin
:: ConditionVariable (11) - Mutex (2)
-
Net
:: FTP (55) -
Net
:: FTP :: MLSxEntry (27) -
Net
:: HTTP (122) -
Net
:: IMAP (33) -
Net
:: POP3 (44) -
Net
:: SMTP (44) - Object (22)
-
OpenSSL
:: ASN1 :: GeneralizedTime (22) -
OpenSSL
:: ASN1 :: UTCTime (22) -
OpenSSL
:: OCSP :: BasicResponse (22) -
OpenSSL
:: PKCS7 :: SignerInfo (11) -
OpenSSL
:: SSL :: SSLContext (55) -
OpenSSL
:: SSL :: Session (44) -
OpenSSL
:: X509 :: CRL (44) -
OpenSSL
:: X509 :: Certificate (44) -
OpenSSL
:: X509 :: Revoked (22) -
OpenSSL
:: X509 :: Store (11) -
OpenSSL
:: X509 :: StoreContext (11) - OptionParser (44)
- Pathname (54)
-
Process
:: Tms (88) -
Psych
:: ScalarScanner (11) -
Racc
:: Parser (11) -
Rake
:: EarlyTime (22) -
Rake
:: FileCreationTask (11) -
Rake
:: FileTask (11) -
Rake
:: Task (11) - Random (33)
-
Resolv
:: DNS (11) -
Rinda
:: TupleEntry (22) - Shell (36)
-
Shell
:: CommandProcessor (36) -
Shell
:: Filter (36) - Socket (154)
-
Socket
:: AncillaryData (11) - String (22)
-
Syslog
:: Logger (11) -
Syslog
:: Logger :: Formatter (11) - TCPSocket (8)
- Thread (11)
-
Thread
:: ConditionVariable (11) -
Thread
:: Mutex (9) - Time (996)
- UnboundMethod (11)
-
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WEBrick
:: Log (22) -
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ VARIANT (11) -
Win32
:: Registry (44) -
Zlib
:: GzipFile (11) -
Zlib
:: GzipWriter (11)
モジュール
- Base64 (11)
- Benchmark (33)
- Etc (110)
-
Fiddle
:: Importer (11) -
File
:: Constants (11) - FileUtils (22)
-
GC
:: Profiler (44) - Kernel (110)
- ObjectSpace (11)
-
OpenSSL
:: ASN1 (66) -
OpenSSL
:: OCSP (11) -
OpenSSL
:: X509 (22) -
OpenURI
:: Meta (11) - Process (187)
- Rake (11)
-
Socket
:: Constants (132) - Timeout (19)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: HTTPStatus (22) -
WIN32OLE
:: VARIANT (11)
キーワード
- % (11)
- * (22)
- + (11)
- - (22)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (22)
- AccessLog (11)
- ArgumentError (11)
-
CLF
_ TIME _ FORMAT (11) -
CLOCK
_ BOOTTIME (11) -
CLOCK
_ BOOTTIME _ ALARM (11) -
CLOCK
_ MONOTONIC (11) -
CLOCK
_ PROCESS _ CPUTIME _ ID (11) -
CLOCK
_ REALTIME (11) -
CLOCK
_ REALTIME _ ALARM (11) -
CLOCK
_ REALTIME _ COARSE (11) -
CLOCK
_ REALTIME _ FAST (11) -
CLOCK
_ REALTIME _ PRECISE (11) -
CLOCK
_ THREAD _ CPUTIME _ ID (11) -
CLOCK
_ UPTIME (11) -
CLOCK
_ UPTIME _ FAST (11) -
CLOCK
_ UPTIME _ PRECISE (11) -
CLOCK
_ UPTIME _ RAW (11) -
CLOCK
_ UPTIME _ RAW _ APPROX (11) - Converters (11)
- Cookie (11)
- DateTime (11)
- DateTimeMatcher (11)
- EARLY (11)
- ETIME (11)
- ETIMEDOUT (11)
- EarlyTime (11)
- Error (11)
- FORMAT (22)
- FileUtils (11)
- Float (11)
- GENERALIZEDTIME (11)
- GatewayTimeout (11)
- GeneralizedTime (33)
- HTTPGatewayTimeOut (11)
- HTTPGatewayTimeout (6)
- HTTPRequestTimeOut (11)
- HTTPRequestTimeout (6)
-
IFF
_ DISABLE _ NETPOLL (22) -
IP
_ TTL (22) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
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) - NOATIME (11)
- NOTIME (11)
- OCSP (11)
- Observable (11)
- OpenTimeout (11)
-
PC
_ TIMESTAMP _ RESOLUTION (11) -
Profiler
_ _ (6) -
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ REQUEST _ TIMEOUT (11) - Random (11)
- ReadTimeout (11)
- RequestTimeout (11)
- Ruby用語集 (11)
- RuntimeError (11)
-
SCM
_ BINTIME (22) -
SCM
_ TIMESTAMP (22) -
SCM
_ TIMESTAMPNS (22) -
SC
_ CPUTIME (11) -
SC
_ DELAYTIMER _ MAX (11) -
SC
_ REALTIME _ SIGNALS (11) -
SC
_ THREAD _ CPUTIME (11) -
SC
_ TIMEOUTS (11) -
SC
_ TIMERS (11) -
SC
_ TIMER _ MAX (11) -
SC
_ XOPEN _ REALTIME (11) -
SC
_ XOPEN _ REALTIME _ THREADS (11) -
SO
_ BINTIME (22) -
SO
_ RCVTIMEO (22) -
SO
_ SNDTIMEO (22) -
SO
_ TIMESTAMP (22) -
SO
_ TIMESTAMPNS (22) -
TCP
_ KEEPIDLE (22) -
TCP
_ KEEPINTVL (22) - TODAY (11)
- Time (11)
- Timeout (11)
- TimeoutError (11)
- TimerIdConv (11)
- UTCTIME (11)
- UTCTime (33)
-
VT
_ DATE (11) -
V
_ ERR _ CERT _ HAS _ EXPIRED (11) -
V
_ ERR _ CERT _ NOT _ YET _ VALID (11) - WIN32OLERuntimeError (11)
- WriteTimeout (6)
- [] (18)
- []= (11)
-
_ dump (11) -
_ strptime (22) - accept (22)
-
add
_ runtime _ dependency (11) -
add
_ status (11) - append (11)
- asctime (22)
- at (47)
- atime (62)
- benchmark (11)
- birthtime (41)
- call (22)
-
catch
_ timer (11) - ceil (5)
- cgi (11)
- civil (11)
-
clock
_ gettime (11) - commercial (11)
-
continue
_ timeout (11) -
continue
_ timeout= (11) - converters (11)
-
count
_ tdata _ objects (11) - create (9)
- cstime (22)
- cstime= (11)
- ctime (84)
- cutime (22)
- cutime= (11)
- date (11)
-
datetime
_ format (22) -
datetime
_ format= (22) - day (11)
-
default
_ event _ sources (11) - define (4)
- drb (11)
-
drb
/ timeridconv (11) - dst? (11)
-
each
_ key (11) - encode64 (11)
- eql? (11)
- expect (22)
- expires (33)
- expires= (33)
- facts (9)
-
fetch
_ path (11) -
fiddle
/ import (11) - floor (5)
-
flush
_ sessions (11) - format (22)
-
format
_ date (11) -
format
_ datetime (11) - formatter (11)
- formatter= (22)
- friday? (11)
- getgm (11)
- getlocal (22)
- getutc (11)
- gm (22)
- gmt? (11)
-
gmt
_ offset (11) - gmtime (11)
- gmtoff (11)
-
handle
_ interrupt (11) - hash (11)
- header (11)
- hour (22)
- httpdate (33)
- inspect (16)
- isdst (11)
- iso8601 (44)
- jd (11)
- jisx0301 (22)
-
json
/ add / date _ time (11) -
json
/ add / time (11) -
json
_ create (22) -
keep
_ alive _ timeout (11) -
keep
_ alive _ timeout= (11) -
last
_ modified (11) -
last
_ update (11) -
last
_ update= (11) - local (22)
- localtime (22)
- lutime (7)
- mday (11)
- min (22)
- minute (11)
- mktime (22)
- modified? (11)
- modify (9)
- mon (11)
- monday? (11)
- month (11)
- mtime (95)
- mtime= (11)
- new (158)
-
new
_ offset (11) -
next
_ update (11) -
next
_ update= (11) -
not
_ after (11) -
not
_ after= (11) -
not
_ before (11) -
not
_ before= (11) -
not
_ modified? (11) - now (22)
- nsec (11)
- offset (11)
- open (4)
-
open
_ timeout (44) -
open
_ timeout= (44) - openssl (11)
-
optparse
/ time (11) - ordinal (11)
- out (11)
- parse (33)
-
parse
_ time (11) - profile (6)
-
racc
_ runtime _ type (11) - rand (33)
- raw (11)
- raw! (11)
-
raw
_ data (11) -
rb
_ thread _ select (1) -
rb
_ thread _ start _ timer (11) -
rb
_ thread _ stop _ timer (11) -
rb
_ thread _ wait _ for (11) -
rb
_ time _ timespec _ new (9) -
rb
_ timespec _ now (9) - rdoc (11)
-
read
_ timeout (44) -
read
_ timeout= (44) - realtime (11)
- reject (22)
-
remove
_ entry _ secure (11) - report (11)
-
request
_ time (11) - result (11)
-
rfc1123
_ date (11) - rfc2822 (33)
- rfc3339 (22)
- rfc822 (33)
- round (11)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ timer (11) -
runtime
_ dependencies (11) - saturday? (11)
- sec (22)
-
sec
_ fraction (11) - second (11)
-
second
_ fraction (11) - select (22)
-
signed
_ time (11) - sleep (11)
-
source
_ location (11) - sprintf (11)
- sprintf フォーマット (11)
-
ssl
_ timeout (22) -
ssl
_ timeout= (22) -
start
_ time (1) -
start
_ time= (1) - status (11)
- stime (22)
- stime= (11)
- strftime (22)
- strptime (44)
- struct (11)
- subsec (11)
- succ (7)
- sunday? (11)
- tcp (22)
- test (40)
- thursday? (11)
- time2wtime (11)
- time= (44)
-
time
_ format (11) -
time
_ format= (11) - timeofday (11)
- timeout (74)
- timeout= (22)
- timeouts= (11)
- times (33)
-
to
_ a (22) -
to
_ date (11) -
to
_ datetime (22) -
to
_ f (11) -
to
_ i (11) -
to
_ id (11) -
to
_ json (22) -
to
_ obj (11) -
to
_ r (11) -
to
_ s (22) -
to
_ time (22) - today (11)
-
total
_ time (11) - touch (11)
- tsort (11)
- tuesday? (11)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - usec (11)
- utc (33)
- utc? (11)
-
utc
_ offset (11) - utime (62)
- utime= (11)
-
verify
_ gem (11) - wait (33)
-
wait
_ for _ cond (5) -
wait
_ readable (11) -
wait
_ writable (11) - wday (11)
-
webrick
/ cgi (11) - wednesday? (11)
-
write
_ timeout (6) -
write
_ timeout= (6) - wtime (11)
- wtime2time (11)
- xmlschema (44)
- yaml (11)
- yday (11)
- year (11)
- zone (22)
検索結果
先頭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...