661件ヒット
[1-100件を表示]
(0.114秒)
ライブラリ
- ビルトイン (108)
-
cgi
/ core (24) - csv (12)
- date (62)
-
drb
/ timeridconv (24) -
json
/ add / date _ time (12) -
json
/ add / time (12) - monitor (18)
-
net
/ ftp (24) -
net
/ http (67) -
net
/ imap (12) - openssl (144)
- optparse (24)
- rake (12)
-
rubygems
/ specification (36) - thread (2)
- time (24)
- timeout (8)
-
webrick
/ httpresponse (12) -
webrick
/ httpservlet / filehandler (12) - win32ole (12)
クラス
- CGI (24)
- CSV (12)
-
DRb
:: TimerIdConv (24) - DateTime (74)
-
Gem
:: Specification (36) - Monitor (6)
-
MonitorMixin
:: ConditionVariable (12) -
Net
:: FTP (24) -
Net
:: HTTP (67) -
Net
:: IMAP (12) -
OpenSSL
:: OCSP :: BasicResponse (24) -
OpenSSL
:: SSL :: SSLContext (60) -
OpenSSL
:: SSL :: Session (48) -
OpenSSL
:: X509 :: StoreContext (12) - OptionParser (24)
-
Rake
:: FileCreationTask (12) -
Thread
:: ConditionVariable (12) - Time (122)
- UnboundMethod (12)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Kernel (8)
キーワード
- []= (12)
- accept (12)
-
add
_ runtime _ dependency (12) -
add
_ status (12) - append (12)
-
continue
_ timeout (12) -
continue
_ timeout= (12) - converters (12)
- date (12)
-
deconstruct
_ keys (4) -
default
_ event _ sources (12) -
flush
_ sessions (12) - header (12)
- iso8601 (12)
-
keep
_ alive _ timeout= (12) - mon (12)
- monday? (12)
- month (12)
-
not
_ modified? (12) - offset (12)
-
open
_ timeout= (24) - out (12)
-
read
_ timeout= (24) - reject (12)
-
runtime
_ dependencies (12) -
sec
_ fraction (12) - second (12)
-
second
_ fraction (12) -
source
_ location (12) -
ssl
_ timeout (12) -
ssl
_ timeout= (12) - status (12)
- strftime (12)
- subsec (12)
- time= (24)
- timeout (32)
- timeout= (24)
-
to
_ id (12) -
to
_ json (24) -
to
_ obj (12) -
to
_ r (12) - wait (24)
-
wait
_ for _ cond (6) -
write
_ timeout= (7) - xmlschema (12)
- zone (24)
検索結果
先頭5件
-
OpenSSL
:: SSL :: Session # time -> Time (21209.0) -
セッションが確立された時刻を返します。
...セッションが確立された時刻を返します。
@see OpenSSL::SSL::Session#time=,
OpenSSL::SSL::Session#timeout... -
Time
# iso8601(fractional _ seconds = 0) -> String (17249.0) -
XML Schema で定義されている dateTime として 表現される形式の文字列を返します。
...いる dateTime として
表現される形式の文字列を返します。
XML Schema で定義されている dateTime として
表現される形式の文字列をパースするためのクラスメソッド
Time.iso8601, Time.xmlschema もあります。
@param fractional_seconds 小数点......ただし TZD は Z または [+-]hh:mm です。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t.xmlschema #=> "2008-08-31T03:34:56Z"
p t.xmlschema(9) #=> "2008-08-31T03:34:56.000000000Z"
@see Time.iso8601, Time.xmlschema... -
Time
# xmlschema(fractional _ seconds = 0) -> String (17249.0) -
XML Schema で定義されている dateTime として 表現される形式の文字列を返します。
...いる dateTime として
表現される形式の文字列を返します。
XML Schema で定義されている dateTime として
表現される形式の文字列をパースするためのクラスメソッド
Time.iso8601, Time.xmlschema もあります。
@param fractional_seconds 小数点......ただし TZD は Z または [+-]hh:mm です。
使用例
require 'time'
iso8601_time = '2008-08-31T12:34:56+09:00'
t = Time.iso8601(iso8601_time)
p t.xmlschema #=> "2008-08-31T03:34:56Z"
p t.xmlschema(9) #=> "2008-08-31T03:34:56.000000000Z"
@see Time.iso8601, Time.xmlschema... -
Time
# strftime(format) -> String (15275.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
...ーマット文字列を指定します。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば......または午後(am,pm)
* %p: 午前または午後(AM,PM)
* %Q: 1970-01-01 00:00:00 UTC からの経過ミリ秒 (Time#strftime は対応していませんが、Date#strftime で使えます)
* %R: 24時間制の時刻。%H:%M と同等。
* %r: 12時間制の時刻。%I:%M:%S %p と同等......セット (例 +09:00:00)
* %%: %自身
* %+: date(1)の形式 (%a %b %e %H:%M:%S %Z %Y) (Time#strftime は対応していませんが、Date#strftime で使えます)
このメソッドは strftime(3) や glibcの仕様を参考に作成されており、以下のオプションが利用でき... -
Time
# deconstruct _ keys(array _ of _ names _ or _ nil) -> Hash (15113.0) -
パターンマッチに使用する名前と値の Hash を返します。
...* :month
* :day
* :yday
* :wday
* :hour
* :min
* :sec
* :subsec
* :dst
* :zone
@param array_of_names_or_nil パターンマッチに使用する名前の配列を指定します。nil の場合は全てをパターンマッチに使用します。
//emlist[例][ruby]{
t = Time.ut......deconstruct_keys が使われます
puts "first Wednesday of the month"
end
#=> "first Wednesday of the month" が出力される
case t
in year: ...2022
puts "too old"
in month: ..9
puts "quarter 1-3"
in wday: 1..5, month:
puts "working day in month #{month}"
end
#=> "working day in month......10" が出力される
# クラスのチェックと組み合わせて利用することもできます
if t in Time(wday: 3, day: ..7)
puts "first Wednesday of the month"
end
//}
@see d:spec/pattern_matching#matching_non_primitive_objects... -
Time
# to _ json(*args) -> String (15113.0) -
自身を JSON 形式の文字列に変換して返します。
...身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡され......ます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\":\"Time\",\"s\":1544968675,\"n\":676167000}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Time
# mon -> Integer (15107.0) -
月を整数で返します。
...月を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.month # => 1
p t.mon # => 1
//}... -
Time
# monday? -> bool (15107.0) -
self の表す時刻が月曜日である場合に true を返します。 そうでない場合に false を返します。
...self の表す時刻が月曜日である場合に true を返します。
そうでない場合に false を返します。
//emlist[][ruby]{
t = Time.local(2003, 8, 4) # => 2003-08-04 00:00:00 +0900
p t.monday? # => true
//}... -
Time
# month -> Integer (15107.0) -
月を整数で返します。
...月を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.month # => 1
p t.mon # => 1
//}... -
Time
# zone -> String (15107.0) -
タイムゾーンを表す文字列を返します。
...タイムゾーンを表す文字列を返します。
//emlist[][ruby]{
p Time.now.zone # => "JST"
//}...