5028件ヒット
[1-100件を表示]
(0.154秒)
種類
ライブラリ
- ビルトイン (1526)
- base64 (11)
- benchmark (110)
-
cgi
/ core (22) -
cgi
/ session (11) -
cgi
/ util (11) - csv (22)
- 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 (74)
-
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)
- open-uri (11)
- openssl (429)
- 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 (11) - 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 (77) - CGI (33)
-
CGI
:: Cookie (33) -
CGI
:: Session (11) - CSV (22)
-
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 (41)
-
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 (22)
-
Resolv
:: DNS (11) -
Rinda
:: TupleEntry (22) - Shell (36)
-
Shell
:: CommandProcessor (36) -
Shell
:: Filter (36) - Socket (154)
-
Socket
:: AncillaryData (11) - String (22)
-
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 (105)
- 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)
-
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) - Cookie (11)
- DateTime (11)
- DateTimeMatcher (11)
- EARLY (11)
- ETIME (11)
- ETIMEDOUT (11)
- EarlyTime (11)
- Error (11)
- FORMAT (22)
- FileUtils (11)
- Float (6)
- 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
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NOATIME (11)
- NOTIME (11)
- OpenTimeout (11)
-
PC
_ TIMESTAMP _ RESOLUTION (11) -
Profiler
_ _ (6) -
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ REQUEST _ TIMEOUT (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)
- 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) -
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
/ 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)
- 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) -
optparse
/ time (11) - ordinal (11)
- out (11)
- parse (33)
-
parse
_ time (11) - profile (6)
-
racc
_ runtime _ type (11) - rand (22)
- 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)
-
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)
- time (44)
- time2wtime (11)
- time= (44)
-
time
_ format (11) -
time
_ format= (11) - timeofday (11)
- timeout (74)
- timeout= (22)
- timeouts= (11)
- times (33)
-
to
_ a (11) -
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)
- yday (11)
- year (11)
- zone (22)
検索結果
先頭5件
-
Time (44072.0)
-
時刻を表すクラスです。
...時刻を表すクラスです。
Time.now は現在の時刻を返します。
File.mtime などが返すファイルのタイムスタンプは Time
オブジェクトです。
Time オブジェクトは時刻を起算時からの経過秒数で保持しています。
起算時は協定世界......定するかどうかはシステムに
よります。
Time オブジェクトが格納可能な時刻の範囲は環境によって異なっていましたが、
Ruby 1.9.2 からは OS の制限の影響を受けません。
また、Time オブジェクトは協定世界時と地方時のど......mlist[][ruby]{
p Marshal.load(Marshal.dump(Time.now.gmtime)).zone
# => "UTC"
//}
time ライブラリによって、Time.parse, Time.rfc2822, Time.httpdate, Time.iso8601 等が拡張されます。
Ruby 1.9.2 以降の Time クラスのデザインの詳細は
https://staff.aist.go.jp/tanaka-akira... -
Time
. strptime(date , format , now=self . now) -> Time (36448.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......('91/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
}
#=> 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 時刻を表す文字列
@param format 書式文字列... -
Time
. strptime(date , format , now=self . now) {|y| . . . } -> Time (36448.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......('91/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
}
#=> 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 時刻を表す文字列
@param format 書式文字列... -
Time
# to _ time -> Time (36418.0) -
対応する Time オブジェクトを返します。
...対応する Time オブジェクトを返します。... -
Time
# to _ datetime -> DateTime (36400.0) -
対応する DateTime オブジェクトを返します。
...対応する DateTime オブジェクトを返します。... -
Time
# strftime(format) -> String (36374.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
...角空白で埋める ( 1..31)
* %F: %Y-%m-%d と同等 (ISO 8601の日付フォーマット)
* %G: ISO 8601の暦週の年
* %g: ISO 8601の暦週の年の下2桁(00-99)
* %H: 24時間制の時(00-23)
* %h: %b と同等
* %I: 12時間制の時(01-12)
* %j: 年中の通算日(001-366)......後(AM,PM)
* %Q: 1970-01-01 00:00:00 UTC からの経過ミリ秒 (Time#strftime は対応していませんが、Date#strftime で使えます)
* %R: 24時間制の時刻。%H:%M と同等。
* %r: 12時間制の時刻。%I:%M:%S %p と同等。
* %S: 秒(00-60) (60はうるう秒)
* %s:......(\t)
* %U: 週を表す数。最初の日曜日が第1週の始まり(00-53)
* %u: 月曜日を1とした、曜日の数値表現 (1..7)
* %V: ISO 8601形式の暦週 (01..53)
* %v: VMS形式の日付 (%e-%^b-%4Y)
* %W: 週を表す数。最初の月曜日が第1週の始まり(00-53)
*... -
Time
# gmtime -> self (36230.0) -
タイムゾーンを協定世界時に設定します。
...のメソッドを呼び出した後は時刻変換を協定世界時として行ないます。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある......ます。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.local(2000,1,1,20,15,1) # => 2000-01-01 20:15:01 +0900
p t.gmt? # => false
p t.gmtime # => 2... -
Time
# localtime -> self (36230.0) -
タイムゾーンを地方時に設定します。
...とする整数か、"+HH:MM" "-HH:MM" 形式
の文字列で指定します。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある......。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.utc(2000, "jan", 1, 20, 15, 1) # => 2000-01-01 20:15:01 UTC
p t.utc? # => true
p t.localtime......# => 2000-01-02 05:15:01 +0900
p t.utc? # => false
p t.localtime("+09:00") # => 2000-01-02 05:15:01 +0900
p t.utc? # => false
//}... -
Time
# localtime(utc _ offset) -> self (36230.0) -
タイムゾーンを地方時に設定します。
...とする整数か、"+HH:MM" "-HH:MM" 形式
の文字列で指定します。
Time#localtime, Time#gmtime の挙動はシステムの
localtime(3) の挙動に依存します。Time クラ
スでは時刻を起算時からの経過秒数として保持していますが、ある......。システムを越えて Time オブジェクトを受け
渡す場合には注意する必要があります。
//emlist[][ruby]{
p t = Time.utc(2000, "jan", 1, 20, 15, 1) # => 2000-01-01 20:15:01 UTC
p t.utc? # => true
p t.localtime......# => 2000-01-02 05:15:01 +0900
p t.utc? # => false
p t.localtime("+09:00") # => 2000-01-02 05:15:01 +0900
p t.utc? # => false
//}... -
Time
# asctime -> String (36218.0) -
時刻を asctime(3) の形式の文字列に変換します。た だし、末尾の改行文字 "\n" は含まれません。
...を asctime(3) の形式の文字列に変換します。た
だし、末尾の改行文字 "\n" は含まれません。
戻り値の文字エンコーディングは Encoding::US_ASCII です。
//emlist[][ruby]{
p Time.local(2000).asctime # => "Sat Jan 1 00:00:00 2000"
p Time.local(......2000).asctime.encoding # => #<Encoding:US-ASCII>
p Time.local(2000).ctime # => "Sat Jan 1 00:00:00 2000"
//}...