るりまサーチ

最速Rubyリファレンスマニュアル検索!
125件ヒット [1-100件を表示] (0.142秒)

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n=
  3. rsa n
  4. openssl n
  5. openssl n=

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

Time#day -> Integer (18308.0)

日を整数で返します。

...日を整数で返します。

//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.day # => 2
p t.mday # => 2
//}...

Date#day -> Integer (18302.0)

月の日を返します (1-31)。

月の日を返します (1-31)。

Time#mday -> Integer (6308.0)

日を整数で返します。

...日を整数で返します。

//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5) # => 2000-01-02 03:04:05 +0900
p t.day # => 2
p t.mday # => 2
//}...

Date#mday -> Integer (6302.0)

月の日を返します (1-31)。

月の日を返します (1-31)。

Date#cwday -> Integer (6301.0)

暦週の日 (曜日) を返します (1-7、月曜は1)。

暦週の日 (曜日) を返します (1-7、月曜は1)。

絞り込み条件を変える

Date#wday -> Integer (6301.0)

曜日を返します (0-6、日曜日は零)。

曜日を返します (0-6、日曜日は零)。

Date#yday -> Integer (6301.0)

年の日を返します (1-366)。

年の日を返します (1-366)。

Time#wday -> Integer (6301.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(...
...p tue.wday # => 2
p wed = 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...

Time#yday -> Integer (6301.0)

1月1日を1とした通算日(1から366まで)を整数で返します。

...me.mktime(2000, 1, 1).yday # => 1
//}

うるう年の場合は、2月29日も含めた通算日を返します。

//emlist[うるう年でない場合][ruby]{
p Time.mktime(2003, 1, 1).yday # => 1
p Time.mktime(2003, 3, 1).yday # => 60
p Time.mktime(2003, 12, 31).yday # => 365
//}

//emlist[...
...うるう年の場合][ruby]{
p Time.mktime(2004, 1, 1).yday # => 1
p Time.mktime(2004, 2, 29).yday # => 60
p Time.mktime(2004, 12, 31).yday # => 366
//}...

MatchData#offset(n) -> [Integer, Integer] | [nil, nil] (350.0)

n 番目の部分文字列のオフセットの配列 [start, end] を返 します。

...
n
番目の部分文字列のオフセットの配列 [start, end] を返
します。

//emlist[例][ruby]{
[ self.begin(n), self.end(n) ]
//}

と同じです。n番目の部分文字列がマッチしていなければ
[nil, nil] を返します。

@param n 部分文字列を指定する数値...
...@raise IndexError 範囲外の n を指定した場合に発生します。

@see MatchData#begin, MatchData#end...

絞り込み条件を変える

<< 1 2 > >>