最速Rubyリファレンスマニュアル検索!
すべて(202)
2.1.0(17)
2.2.0(17)
2.3.0(17)
2.4.0(17)
2.5.0(17)
2.6.0(17)
2.7.0(20)
3.0(20)
3.1(20)
3.2(20)
3.3(20)
202件ヒット
[201-202件を表示]
(0.025秒)
トップページ
>
クラス:
Time
>
:
utc
>
:
ビルトイン
>
:インスタンスメソッド
別のキーワード
time utc
_builtin utc
time utc?
_builtin utc?
time utc_offset
キーワード
ceil
(5)
floor
(5)
getgm
(11)
getlocal
(22)
getutc
(11)
gmt?
(11)
gmt
_
offset
(11)
gmtime
(11)
gmtoff
(11)
inspect
(5)
localtime
(22)
round
(11)
sec
(11)
strftime
(11)
to
_
s
(11)
utc?
(11)
utc
_
offset
(11)
検索結果
先頭1件
Time
#
sec -> Integer
<<
<
1
2
3
>>
Time
#
sec -> Integer
(10.0)
2.3.0
2.6.0
インスタンスメソッド
秒を整数で返します。
...
秒を整数で返します。
//emlist[][ruby]{
p
Time
.mk
time
(2000, 1, 1).sec # => 0
//}
通常は0から59を返しますが、うるう秒の場合は60を返します。
//emlist[][ruby]{
ENV['TZ'] = 'right/
UTC
'
p
Time
.mk
time
(2005, 12, 31, 23, 59, 60).sec # => 60
//}
...
<<
<
1
2
3
>>