2715件ヒット
[101-200件を表示]
(0.122秒)
ライブラリ
- ビルトイン (932)
- benchmark (66)
-
cgi
/ core (22) - csv (11)
- date (242)
-
drb
/ timeridconv (22) - expect (22)
-
fiddle
/ import (11) -
io
/ console (22) -
io
/ wait (33) -
json
/ add / date _ time (11) -
json
/ add / time (11) - logger (77)
-
minitest
/ unit (2) - mkmf (11)
- monitor (16)
-
net
/ ftp (82) -
net
/ http (122) -
net
/ imap (11) -
net
/ pop (44) -
net
/ smtp (44) - open-uri (11)
- openssl (264)
- optparse (22)
- pathname (54)
- psych (11)
- rake (55)
- resolv (11)
-
rinda
/ tuplespace (22) -
rubygems
/ package / tar _ header (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ security (11) -
rubygems
/ specification (33) -
rubygems
/ timer (11) - shell (36)
-
shell
/ command-processor (36) -
shell
/ filter (36) - socket (11)
-
syslog
/ logger (22) - thread (2)
- time (55)
- timeout (22)
-
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / filehandler (11) -
webrick
/ log (22) -
win32
/ registry (22) - win32ole (11)
- zlib (22)
クラス
- Array (11)
-
Benchmark
:: Tms (66) - CGI (22)
-
CGI
:: Cookie (22) - CSV (11)
-
DRb
:: TimerIdConv (22) - Date (55)
- DateTime (165)
- File (43)
-
File
:: Stat (44) -
Gem
:: Package :: TarHeader (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: Security :: Policy (11) -
Gem
:: Specification (33) - IO (77)
- Integer (22)
- Logger (44)
-
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 (11) -
Net
:: POP3 (44) -
Net
:: SMTP (44) - Object (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 (22)
- Pathname (54)
-
Process
:: Tms (88) -
Psych
:: ScalarScanner (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
:: AncillaryData (11) - String (22)
-
Syslog
:: Logger (11) -
Syslog
:: Logger :: Formatter (11) -
Thread
:: ConditionVariable (11) -
Thread
:: Mutex (9) - Time (715)
- UnboundMethod (11)
-
WEBrick
:: Cookie (22) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (11) -
WEBrick
:: Log (22) -
WIN32OLE
_ TYPE (11) -
Win32
:: Registry (22) -
Zlib
:: GzipFile (11) -
Zlib
:: GzipWriter (11)
モジュール
-
Fiddle
:: Importer (11) - Kernel (44)
-
OpenURI
:: Meta (11)
キーワード
- % (11)
- * (22)
- + (11)
- - (22)
- <=> (22)
- [] (18)
- []= (11)
-
_ dump (11) - accept (11)
-
add
_ runtime _ dependency (11) -
add
_ status (11) - append (11)
- asctime (22)
- atime (51)
- birthtime (31)
- call (22)
- ceil (5)
-
continue
_ timeout (11) -
continue
_ timeout= (11) - converters (11)
- create (9)
- cstime (22)
- cstime= (11)
- ctime (73)
- cutime (22)
- cutime= (11)
- date (11)
-
datetime
_ format (22) -
datetime
_ format= (22) - day (11)
-
default
_ event _ sources (11) - dst? (11)
-
each
_ key (11) - eql? (11)
- expect (22)
- expires (33)
- expires= (33)
- facts (9)
-
fetch
_ path (11) - floor (5)
-
flush
_ sessions (11) - format (11)
- formatter (11)
- formatter= (22)
- friday? (11)
- getgm (11)
- getlocal (22)
- getutc (11)
- gmt? (11)
-
gmt
_ offset (11) - gmtime (11)
- gmtoff (11)
- hash (11)
- header (11)
- hour (22)
- httpdate (11)
- inspect (16)
- isdst (11)
- iso8601 (22)
- jisx0301 (11)
-
keep
_ alive _ timeout (11) -
keep
_ alive _ timeout= (11) -
last
_ modified (11) -
last
_ update (11) -
last
_ update= (11) - localtime (22)
- mday (11)
- min (22)
- minute (11)
- modified? (11)
- modify (9)
- mon (11)
- monday? (11)
- month (11)
- mtime (84)
- mtime= (11)
-
new
_ offset (11) -
next
_ update (11) -
next
_ update= (11) -
not
_ after (11) -
not
_ after= (11) -
not
_ before (11) -
not
_ before= (11) -
not
_ modified? (11) - nsec (11)
- offset (11)
-
open
_ timeout (44) -
open
_ timeout= (44) - out (11)
-
parse
_ time (11) - rand (33)
- raw (11)
- raw! (11)
-
read
_ timeout (44) -
read
_ timeout= (44) - reject (11)
-
request
_ time (11) - rfc2822 (11)
- rfc3339 (11)
- rfc822 (11)
- round (11)
-
runtime
_ dependencies (11) - saturday? (11)
- sec (22)
-
sec
_ fraction (11) - second (11)
-
second
_ fraction (11) -
signed
_ time (11) - sleep (11)
-
source
_ location (11) -
ssl
_ timeout (22) -
ssl
_ timeout= (22) -
start
_ time (1) -
start
_ time= (1) - status (11)
- stime (22)
- stime= (11)
- strftime (22)
- struct (11)
- subsec (11)
- succ (7)
- sunday? (11)
- test (18)
- thursday? (11)
- time= (44)
-
time
_ format (11) -
time
_ format= (11) - timeout (44)
- timeout= (22)
- timeouts= (11)
- times (22)
-
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) - tuesday? (11)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - usec (11)
- utc (11)
- utc? (11)
-
utc
_ offset (11) - utime (51)
- utime= (11)
-
verify
_ gem (11) - wait (33)
-
wait
_ for _ cond (5) -
wait
_ readable (11) -
wait
_ writable (11) - wday (11)
- wednesday? (11)
-
write
_ timeout (6) -
write
_ timeout= (6) - wtime (11)
- xmlschema (22)
- yday (11)
- year (11)
- zone (22)
検索結果
先頭5件
-
Time
# to _ time -> Time (15219.0) -
対応する Time オブジェクトを返します。
...対応する Time オブジェクトを返します。... -
Time
# to _ datetime -> DateTime (15201.0) -
対応する DateTime オブジェクトを返します。
...対応する DateTime オブジェクトを返します。... -
Time
# gmtime -> self (15131.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 (15131.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 (15131.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 (15119.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"
//}... -
Time
# ctime -> String (15119.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"
//}... -
Time
# utc -> self (12031.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
# ceil(ndigits=0) -> Time (9154.0) -
十進小数点数で指定した桁数の精度で切り上げをし、 その Time オブジェクトを返します。 (デフォルトは0、つまり小数点の所で切り上げます)。
...上げをし、
その Time オブジェクトを返します。
(デフォルトは0、つまり小数点の所で切り上げます)。
ndigits には 0 以上の整数を渡します。
@param ndigits 十進での精度(桁数)
//emlist[][ruby]{
require 'time'
t = Time.utc(2010,3,30, 5,43,25.......0Z"
t = Time.utc(1999,12,31, 23,59,59)
(t + 0.4).ceil.iso8601(3) # => "2000-01-01T00:00:00.000Z"
(t + 0.9).ceil.iso8601(3) # => "2000-01-01T00:00:00.000Z"
(t + 1.4).ceil.iso8601(3) # => "2000-01-01T00:00:01.000Z"
(t + 1.9).ceil.iso8601(3) # => "2000-01-01T00:00:01.000Z"
t = Time.utc(19......99,12,31, 23,59,59)
(t + 0.123456789).ceil(4).iso8601(6) # => "1999-12-31T23:59:59.123500Z"
//}
@see Time#floor, Time#round... -
Time
# floor(ndigits=0) -> Time (9154.0) -
十進小数点数で指定した桁数の精度で切り捨てをし、 その Time オブジェクトを返します。 (デフォルトは0、つまり小数点の所で切り捨てます)。
...捨てをし、
その Time オブジェクトを返します。
(デフォルトは0、つまり小数点の所で切り捨てます)。
ndigits には 0 以上の整数を渡します。
@param ndigits 十進での精度(桁数)
//emlist[][ruby]{
require 'time'
t = Time.utc(2010,3,30, 5,43,25......."
t = Time.utc(1999,12,31, 23,59,59)
(t + 0.4).floor.iso8601(3) # => "1999-12-31T23:59:59.000Z"
(t + 0.9).floor.iso8601(3) # => "1999-12-31T23:59:59.000Z"
(t + 1.4).floor.iso8601(3) # => "2000-01-01T00:00:00.000Z"
(t + 1.9).floor.iso8601(3) # => "2000-01-01T00:00:00.000Z"
t = Time.utc(......1999,12,31, 23,59,59)
(t + 0.123456789).floor(4).iso8601(6) # => "1999-12-31T23:59:59.123400Z"
//}
@see Time#ceil, Time#round... -
Time
# round(ndigits=0) -> Time (9148.0) -
十進小数点数で指定した桁数の精度で丸めをし、 その Time オブジェクトを返します。 (デフォルトは0、つまり小数点の所で丸めます)。
...で丸めをし、
その Time オブジェクトを返します。
(デフォルトは0、つまり小数点の所で丸めます)。
ndigits には 0 以上の整数を渡します。
@param ndigits 十進での精度(桁数)
//emlist[][ruby]{
require 'time'
t = Time.utc(1999,12,31, 23,59,59)......000-01-01T00:00:00.000Z"
p((t + 1.49).round.iso8601(3)) # => "2000-01-01T00:00:00.000Z"
p((t + 1.5).round.iso8601(3)) # => "2000-01-01T00:00:01.000Z"
t = Time.utc(1999,12,31, 23,59,59)
p (t + 0.123456789).round(4).iso8601(6) # => "1999-12-31T23:59:59.123500Z"
//}
@see Time#ceil, Time#floor...