344件ヒット
[301-344件を表示]
(0.137秒)
クラス
- Date (55)
- Monitor (88)
-
MonitorMixin
:: ConditionVariable (55) - Time (55)
モジュール
- MonitorMixin (91)
キーワード
- broadcast (11)
- enter (11)
- exit (11)
-
mon
_ check _ owner (5) -
mon
_ enter (16) -
mon
_ exit (16) -
mon
_ locked? (12) -
mon
_ owned? (12) -
mon
_ synchronize (16) -
mon
_ try _ enter (16) - monday? (22)
- month (22)
-
new
_ cond (16) -
next
_ month (11) -
prev
_ month (11) - signal (11)
- strftime (11)
- synchronize (16)
-
try
_ enter (11) -
try
_ mon _ enter (16) - wait (11)
-
wait
_ for _ cond (5) -
wait
_ until (11) -
wait
_ while (11) - wday (11)
検索結果
先頭4件
-
MonitorMixin
:: ConditionVariable # broadcast -> () (6001.0) -
その条件変数で 待っている全てのスレッドの実行を再開します。
...その条件変数で
待っている全てのスレッドの実行を再開します。
@see MonitorMixin::ConditionVariable#signal... -
MonitorMixin
:: ConditionVariable # wait _ while { . . . } -> () (6001.0) -
モニタのロックを開放し、現在のスレッドを ブロックで指定した条件を満たしている間停止します。
...を開放し、現在のスレッドを
ブロックで指定した条件を満たしている間停止します。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast で
スレッドが起こされると、ロックを取得し、ブロックを評価し
その結......このメソッドから抜け処理を継続するか
再びロックを開放しスレッドを停止するかを決めます。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionVariable#wait... -
Time
# strftime(format) -> String (137.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
...す。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %......空白で埋める ( 0..12)
* %M: 分(00-59)
* %m: 月を表す数字(01-12)
* %n: 改行 (\n)
* %N: 秒の小数点以下。桁の指定がない場合は9桁 (ナノ秒)、%6N: マイクロ秒 (6桁)、%3N: ミリ秒 (3桁)
* %P: 午前または午後(am,pm)
* %p: 午前または午後......無視されます。
//emlist[例][ruby]{
p t = Time.new(2001,2,3,4,5,6,"+09:00") # => 2001-02-03 04:05:06 +0900
p t.strftime("Printed on %m/%d/%Y") # => "Printed on 02/03/2001"
p t.strftime("Printed on %m/%-d/%_6Y") # => "Printed on 02/3/ 2001"
p t.strftime("at %I:%M%p") #... -
Time
# wday -> Integer (113.0) -
曜日を0(日曜日)から6(土曜日)の整数で返します。
...sun = Time.new(2017, 9, 17, 10, 34, 15, '+09:00') # => 2017-09-17 10:34:15 +0900
p sun.wday # => 0
p mon = Time.new(2017, 9, 18, 10, 34, 15, '+09:00') # => 2017-09-18 10:34:15 +0900
p mon.wday # => 1
p tue = Time.new(......= Time.new(2017, 9, 20, 10, 34, 15, '+09:00') # => 2017-09-20 10:34:15 +0900
p wed.wday # => 3
p thu = Time.new(2017, 9, 21, 10, 34, 15, '+09:00') # => 2017-09-21 10:34:15 +0900
p thu.wday # => 4
p fri = Time.new(2017......, 9, 22, 10, 34, 15, '+09:00') # => 2017-09-22 10:34:15 +0900
p fri.wday # => 5
p sat = Time.new(2017, 9, 23, 10, 34, 15, '+09:00') # => 2017-09-23 10:34:15 +0900
p sat.wday # => 6
//}...