キーワード
- cgi (11)
- drb (11)
-
drb
/ timeridconv (11) -
fiddle
/ import (11) -
json
/ add / date _ time (11) -
json
/ add / time (11) - openssl (11)
-
optparse
/ time (11) - profile (6)
- rdoc (11)
- rss (11)
-
rubygems
/ timer (11) - timeout (11)
- tsort (11)
-
webrick
/ cgi (11) - yaml (11)
検索結果
-
time (38061.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 により様々な形式を扱えます。... -
optparse
/ time (6051.0) -
OptionParser#on で使用可能なクラスに Time が 追加されます。 オプションの引数は Time クラスのインスタンスに変換されてから、 OptionParser#on のブロックに渡されます。
...なクラスに Time が
追加されます。
オプションの引数は Time クラスのインスタンスに変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/time'
opts = OptionParser.new
opts.on("-t TIME", Time){|t|
p t #=> Sa... -
json
/ add / time (6017.0) -
Time に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。
...Time に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。... -
drb
/ timeridconv (6001.0) -
DRb::DRbIdConv の拡張 DRb::TimerIdConv を定義 するライブラリ。 DRb::DRbIdConv の GC 問題をタイムアウトを定めることで 部分的に解決します。
...DRb::DRbIdConv の拡張 DRb::TimerIdConv を定義
するライブラリ。
DRb::DRbIdConv の GC 問題をタイムアウトを定めることで
部分的に解決します。... -
json
/ add / date _ time (6001.0) -
DateTime に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。
...DateTime に JSON 形式の文字列に変換するメソッドや JSON 形式の文字列から Ruby のオブジェクトに変換するメソッドを定義します。... -
rubygems
/ timer (6001.0) -
このライブラリは、ログ取得のために $log というグローバル変数を定義します。
このライブラリは、ログ取得のために $log というグローバル変数を定義します。 -
timeout (6001.0)
-
タイムアウトを行うライブラリです。
タイムアウトを行うライブラリです。 -
rss (103.0)
-
RSS を扱うためのライブラリです。
....com/"
maker.items.new_item do |item|
item.link = "http://example.com/article.html"
item.title = "Sample Article"
item.date = Time.parse("2004/11/1 10:10")
end
end
サンプル中の
item.date = ...
は
item.dc_date = ...
でも構いません.#dc_date=は#dat......ml"
item.title = "Sample Article"
item.date = Time.parse("2004/11/1 10:10")
end
maker.items.new_item do |item|
item.link = "http://example.com/article2.html"
item.title = "Sample Article2"
item.date = Time.parse("2004/11/2 10:10")
end
end
===== エント......ml"
item.title = "Sample Article"
item.date = Time.parse("2004/11/1 10:10")
end
maker.items.new_item do |item|
item.link = "http://example.com/article2.html"
item.title = "Sample Article2"
item.date = Time.parse("2004/11/2 10:10")
end
end
===== ロゴの... -
tsort (61.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...inputs_time = inputs.map {|f| File.mtime f}.max
begin
outputs_time = outputs.map {|f| File.mtime f}.min
rescue Errno::ENOENT
outputs_time = nil
end
if outputs_time == nil ||
inputs_time != nil && outputs_time <= inputs_time......sleep 1 if inputs_time != nil && inputs_time.to_i == Time.now.to_i
block.call
end
end
}
end
def tsort_each_child(node, &block)
@dep[node].each(&block)
end
include TSort
end
def command(arg)
print arg, "\n"
system arg
end
m = Make.new
m.rule(%w[t1]) { c... -
fiddle
/ import (31.0) -
fiddle ライブラリのための高レベルインターフェースを提供するライブラリです。
...タ(整数)へ変換してから関数に渡し、コールバックの方で元に戻します。
例えば libc の qsort を使って Ruby の Time の配列をソートするには以下のようにします。
require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.......b0 = Fiddle.dlunwrap(b.ptr.to_i)
a0 <=> b0
}
extern 'void qsort(void *, int, int, void *)'
end
buff = [Time.at(1), Time.now, Time.at(100), Time.at(10)]
a = buff.map{|t| Fiddle.dlwrap(t)}.pack('l!*')
M.qsort(a, buff.size, Fiddle::SIZEOF_VOIDP, M::QsortCallback)
p a.un...