別のキーワード
ライブラリ
- ビルトイン (1196)
- csv (120)
- date (36)
- json (72)
-
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - logger (9)
- matrix (160)
-
net
/ http (12) - openssl (24)
- optparse (12)
- pathname (60)
- prettyprint (12)
- psych (27)
- pty (12)
- rake (48)
-
rdoc
/ parser / ruby (12) -
rexml
/ document (60) -
ripper
/ lexer (32) -
rubygems
/ installer (12) -
rubygems
/ requirement (12) -
rubygems
/ source _ index (12) -
rubygems
/ specification (24) -
rubygems
/ version (12) - tsort (33)
- uri (24)
クラス
- CSV (120)
- Data (21)
- Date (48)
- DateTime (12)
- Dir (333)
- Encoding (12)
-
Encoding
:: Converter (72) - Enumerator (25)
-
Enumerator
:: Chain (7) -
Enumerator
:: Lazy (12) - Exception (12)
- File (231)
-
File
:: Stat (12) -
Gem
:: Installer (12) -
Gem
:: Requirement (12) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (24) -
Gem
:: Version (12) - IO (120)
-
JSON
:: State (24) - Logger (9)
- Matrix (160)
-
Net
:: HTTP (12) -
OpenSSL
:: ASN1 :: Enumerated (24) - OptionParser (12)
- Pathname (60)
- PrettyPrint (12)
-
RDoc
:: Parser :: Ruby (12) -
REXML
:: CData (12) -
REXML
:: Entity (12) -
REXML
:: XPath (36) -
Rake
:: InvocationChain (24) - Random (36)
- Range (12)
- Regexp (48)
- Ripper (32)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (34) - Struct (12)
- Thread (12)
- Time (65)
-
URI
:: FTP (12)
モジュール
- GC (60)
-
GC
:: Profiler (24) - JSON (36)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - PTY (12)
- Process (8)
- Psych (27)
- Rake (24)
-
RubyVM
:: AbstractSyntaxTree (10) - TSort (33)
- URI (12)
- Warning (5)
オブジェクト
- ENV (72)
キーワード
- [] (30)
-
abort
_ on _ exception= (12) -
absolute
_ path (12) -
absolute
_ path? (6) - accept (12)
- append (12)
- application (12)
- application= (12)
-
asciicompat
_ encoding (24) - atime (12)
- binread (12)
- binwrite (12)
- build (24)
- categories (1)
- chdir (36)
- check (12)
- children (16)
- chroot (12)
- civil (12)
- columns (12)
- combine (16)
- compatible? (12)
- compile (12)
- create (24)
-
create
_ id (12) -
create
_ id= (12) - define (6)
- delete (12)
-
delete
_ if (12) - diagonal (12)
- each (24)
-
each
_ child (32) -
each
_ key (12) -
each
_ pair (12) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) - empty (12)
- empty? (9)
- entries (24)
-
exec
_ format (12) - exists? (9)
- first (12)
- fnmatch (12)
- fnmatch? (12)
- foreach (96)
- format (12)
-
from
_ state (12) -
from
_ yaml (12) - generate (12)
-
generate
_ line (12) -
get
_ print (12) - getwd (12)
- glob (48)
- hstack (12)
- instance (24)
- join (12)
-
json
_ create (96) -
last
_ match (24) -
last
_ status (8) -
latest
_ gc _ info (24) - lex (8)
- list (12)
- load (15)
-
load
_ from _ binary _ extra _ data (10) -
load
_ specification (12) - lstat (12)
- match (12)
- matches? (12)
- members (3)
- mkdir (12)
- new (269)
- open (72)
- parse (12)
-
parse
_ file (10) - path (12)
- produce (6)
- pwd (12)
- rand (36)
-
raw
_ data (12) - read (12)
- readlines (48)
- readlink (12)
- realpath (12)
- reject (12)
- reject! (12)
-
resolve
_ feature _ path (1) - rmdir (12)
- rows (12)
- scalar (12)
-
search
_ convpath (12) - slice (12)
- split (12)
- start (12)
- stat (36)
- state (12)
- sysopen (12)
- table (12)
- today (12)
-
token
_ match (12) -
total
_ time (12) - truncate (12)
-
tsort
_ each (11) - union (12)
- unlink (12)
- utime (12)
- vstack (12)
- warn (4)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
- zero (24)
検索結果
先頭5件
-
Time
. at(time) -> Time (18192.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......0 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0900
Time.at(1582721899,......in: "UTC") # => 2020-02-26 12:58:19 UTC
Time.at(1582721899, in: "C") # => 2020-02-26 13:58:19 +0300
//}... -
Time
. at(time , in:) -> Time (18192.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......0 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0900
Time.at(1582721899,......in: "UTC") # => 2020-02-26 12:58:19 UTC
Time.at(1582721899, in: "C") # => 2020-02-26 13:58:19 +0300
//}... -
Time
. at(time) -> Time (18180.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0... -
Time
. at(time , in:) -> Time (18180.0) -
time で指定した時刻の Time オブジェクトを返します。
...を指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
Time.at(1582721899, in: "+09:00") # => 2020-02-26 21:58:19 +0900
Time.at(1582721899, in: 9*60*60) # => 2020-02-26 21:58:19 +0... -
Time
. at(time) -> Time (18165.0) -
time で指定した時刻の Time オブジェクトを返します。
...で指定します。
//emlist[][ruby]{
Time.at(0) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0)) # => 1970-01-01 09:00:00 +0900
Time.at(Time.at(0).getutc) # => 1970-01-01 00:00:00 UTC
Time.at(946702800)......# => 2000-01-01 14:00:00 +0900
Time.at(-284061600) # => 1960-12-31 15:00:00 +0900
Time.at(946684800.2).usec # => 200000
//}... -
Time
. at(seconds , xseconds , unit) -> Time (18152.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します......ゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec #... -
Time
. at(seconds , xseconds , unit , in:) -> Time (18152.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します......ゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec #... -
Time
. at(seconds , xseconds , unit) -> Time (18150.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します......ゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec #... -
Time
. at(seconds , xseconds , unit , in:) -> Time (18150.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...などの時刻を表す Time オブジェクトを返します。
@param seconds 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します......ゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec #... -
Time
. at(seconds , xseconds , unit) -> Time (18145.0) -
unit に応じて seconds + xseconds ミリ秒などの時刻を表す Time オブジェクトを返します。
...、 Float、 Rational、または他のNumericで指定します。
@param xseconds unit に対応するミリ秒かマイクロ秒かナノ秒を指定します。
@param unit :millisecond, :usec, :microsecond, :nsec, :nanosecond のいずれかを指定します。
//emlist[][ruby]{
Time.at(94668......4800, 123.456789, :millisecond).nsec # => 123456789
Time.at(946684800, 123456.789, :usec).nsec # => 123456789
Time.at(946684800, 123456.789, :microsecond).nsec # => 123456789
Time.at(946684800, 123456789, :nsec).nsec # => 123456789
//}... -
Time
. at(time , usec) -> Time (18137.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...なります。
@param time 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
@param in "+HH:MM" や "-HH:MM" のよう......な形式の文字列か
"UTC" かミリタリータイムゾーンの文字列または
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789
//}... -
Time
. at(time , usec , in:) -> Time (18137.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...なります。
@param time 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
@param in "+HH:MM" や "-HH:MM" のよう......な形式の文字列か
"UTC" かミリタリータイムゾーンの文字列または
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789
//}... -
Time
. at(time , usec) -> Time (18135.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...なります。
@param time 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
@param in "+HH:MM" や "-HH:MM" のよう......な形式の文字列か
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789
//}... -
Time
. at(time , usec , in:) -> Time (18135.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...なります。
@param time 起算時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
@param in "+HH:MM" や "-HH:MM" のよう......な形式の文字列か
数値でタイムゾーンを指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789
//}... -
Time
. at(time , usec) -> Time (18130.0) -
time + (usec/1000000) の時刻を表す Time オブジェクトを返します。 浮動小数点の精度では不十分な場合に使用します。
...時からの経過秒数を表わす値をInteger、 Float、 Rational、または他のNumericで指定します。
@param usec マイクロ秒をInteger、 Float、 Rational、または他のNumericで指定します。
//emlist[][ruby]{
Time.at(946684800, 123456.789).nsec # => 123456789
//}... -
RubyVM
. resolve _ feature _ path (15235.0) -
require を呼んだときに読み込まれるファイルを特定します。 このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
...require を呼んだときに読み込まれるファイルを特定します。
このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
//emlist[][ruby]{
p RubyVM.resolve_feature_path('set')
# => [:rb, "/build-all-ruby/2.6.0/lib/ruby/2.6.0/set.rb"]
//}... -
JSON
:: Generator :: GeneratorMethods :: String :: Extend . json _ create(hash) -> String (12117.0) -
JSON のオブジェクトから Ruby の文字列を生成して返します。
...JSON のオブジェクトから Ruby の文字列を生成して返します。
@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。
require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A... -
Date
. json _ create(hash) -> Date (9217.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
DateTime
. json _ create(hash) -> DateTime (9217.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。... -
JSON
:: State . from _ state(options) -> JSON :: State (9213.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を
返します。options が JSON::State のイ......JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require......"json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.from_state(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent # => "\t"
//}...