496件ヒット
[1-100件を表示]
(0.167秒)
種類
- インスタンスメソッド (344)
- 特異メソッド (143)
- 関数 (9)
クラス
-
ARGF
. class (11) -
CSV
:: Row (22) - DateTime (66)
-
Encoding
:: Converter (33) -
Enumerator
:: Lazy (10) -
Fiddle
:: Pointer (44) - IO (106)
- MatchData (26)
-
Net
:: FTP (44) - Pathname (22)
- Regexp (22)
- String (4)
- Time (44)
-
WIN32OLE
_ METHOD (11)
モジュール
- Enumerable (22)
キーワード
- [] (22)
- []= (33)
- advise (11)
- binread (11)
- binwrite (22)
- byteindex (2)
- byteoffset (4)
- byterindex (2)
- civil (11)
- commercial (11)
-
copy
_ stream (22) - delete (11)
-
each
_ with _ index (22) - getlocal (22)
- jd (11)
- localtime (22)
- match (22)
- new (11)
-
offset
_ vtbl (11) - ordinal (11)
- pread (7)
-
primitive
_ convert (33) -
rb
_ time _ timespec _ new (9) - read (33)
- retrbinary (22)
- seek (11)
- storbinary (22)
-
with
_ index (10) - write (22)
検索結果
先頭5件
-
DateTime
# offset -> Rational (21301.0) -
時差を返します。
時差を返します。 -
MatchData
# offset(name) -> [Integer , Integer] | [nil , nil] (18451.0) -
name という名前付きグループに対応する部分文字列のオフセットの配列 [start, end] を返 します。
...nd] を返
します。
//emlist[例][ruby]{
[ self.begin(name), self.end(name) ]
//}
と同じです。nameの名前付きグループにマッチした部分文字列がなければ
[nil, nil] を返します。
@param name 名前(シンボルか文字列)
@raise IndexError 正規表現中で......//emlist[例][ruby]{
/(?<year>\d{4})年(?<month>\d{1,2})月(?:(?<day>\d{1,2})日)?/ =~ "2021年1月"
p $~.offset('year') # => [0, 4]
p $~.offset(:year) # => [0, 4]
p $~.offset('month') # => [5, 6]
p $~.offset(:month) # => [5, 6]
p $~.offset('day') # => [nil, nil]
p $~.offset('centu......ry') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end......ry') # => `offset': undefined group name reference: century (IndexError)
//}
@see MatchData#begin, MatchData#end, MatchData#offset... -
MatchData
# offset(n) -> [Integer , Integer] | [nil , nil] (18416.0) -
n 番目の部分文字列のオフセットの配列 [start, end] を返 します。
...列 [start, end] を返
します。
//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}
と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。
@param n 部分文字列を指定する数値
@raise IndexError 範囲外の n を指定した......場合に発生します。
@see MatchData#begin, MatchData#end......場合に発生します。
@see MatchData#begin, MatchData#end, MatchData#offset... -
Time
# localtime(utc _ offset) -> self (15307.0) -
タイムゾーンを地方時に設定します。
...utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+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")... -
WIN32OLE
_ METHOD # offset _ vtbl -> Integer (15307.0) -
このメソッドのVTBLのオフセットを取得します。
...ドのVTBLのオフセットを取得します。
VTBLはC++やCでメソッドを呼び出すために利用する関数ポインタのテーブルです。
@return メソッドのVTBL上のオフセットを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Work......books')
method = WIN32OLE_METHOD.new(tobj, 'Add')
puts method.offset_vtbl # => 40... -
Time
# localtime -> self (15207.0) -
タイムゾーンを地方時に設定します。
...utc_offset タイムゾーンを地方時に設定する代わりに協定世界時との
時差を、秒を単位とする整数か、"+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")... -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (12534.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
...offset を元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、I......NT_MAX-1 を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。... -
DateTime
. ordinal(year = -4712 , yday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (12407.0) -
年日付に相当する日時オブジェクトを生成します。
...トを生成します。
DateTime.new も参照してください。
@param year 年
@param yday 年の日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない... -
DateTime
. civil(year = -4712 , mon = 1 , mday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (12308.0) -
暦日付に相当する日時オブジェクトを生成します。
...な時差をあらわす文字列もつかえます。
@param year 年
@param mon 月
@param mday 日
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時... -
DateTime
. commercial(cwyear = -4712 , cweek = 1 , cwday = 1 , hour = 0 , min = 0 , sec = 0 , offset = 0 , start = Date :: ITALY) -> DateTime (12307.0) -
暦週日付に相当する日時オブジェクトを生成します。
...ます。
DateTime.new も参照してください。
@param cwyear 年
@param cweek 週
@param cwday 週の日 (曜日)
@param hour 時
@param min 分
@param sec 秒
@param offset 時差
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正...