るりまサーチ

最速Rubyリファレンスマニュアル検索!
110件ヒット [1-100件を表示] (0.015秒)
トップページ > クエリ:map[x] > クエリ:date[x]

別のキーワード

  1. matrix map
  2. _builtin map
  3. matrix map!
  4. _builtin flat_map
  5. set map!

ライブラリ

キーワード

検索結果

<< 1 2 > >>

Net::IMAP::Envelope#date -> String | nil (21101.0)

日付の文字列を返します。

日付の文字列を返します。

エンベロープに存在しないときは nil を返します。

Net::IMAP.format_date(time) -> String (9107.0)

時刻オブジェクトを IMAP の日付フォーマットでの文字列に変換します。

...時刻オブジェクトを IMAP の日付フォーマットでの文字列に変換します。

require 'net/imap'

Net::IMAP.format_date(Time.new(2011, 6, 20))
# => "20-Jun-2011"

@param time 変換する時刻オブジェクト...

Net::IMAP.format_datetime(time) -> String (9100.0)

時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します

...時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します

require 'net/imap'

Net::IMAP.format_datetime(Time.new(2011, 6, 20, 13, 20, 1))
# => "20-Jun-2011 13:20 +0900"

@param time 変換する時刻オブジェクト...

Net::IMAP#append(mailbox, message, flags = nil, date_time = nil) -> Net::IMAP::TaggedResponse (3207.0)

APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。

...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。


例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com

hello world
EOF

@param mailbox メッセー...
...セージ文字列
@param flags メッセージに付加するフラグ(Symbol の配列)
@param date_time メッセージの時刻(Time オブジェクト)。省略時は現在時刻が使われる
@raise Net::IMAP::NoResponseError メールボックスが存在しない場合に発生します...

Net::IMAP::ContentDisposition#param -> { String => String } | nil (3012.0)

Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。

...position フィールドのパラメータをハッシュテーブルで
返します。

ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"
* "SIZE"...

絞り込み条件を変える

Net::IMAP#sort(sort_keys, search_keys, charset) -> [Integer] (3006.0)

SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。

...ます。

SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。

sort_keys にはソート順を決めるキーを文字列...
...ください。

search_key には検索条件を渡します。Net::IMAP#search と
ほぼ同じです。この条件にマッチするメッセージのみがソートされます。

Net::IMAP#examine もしくは
Net::IMAP#select で指定したメールボックスを対象とします。

...
...り値は message sequence number の配列を返します。

例:
p imap.sort(["FROM"], ["ALL"], "US-ASCII")
#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
#=> [6, 7, 8, 1]
@param sort_key ソート順のキー(文字列配列)
@param search_key 検...

Net::IMAP#uid_sort(sort_keys, search_keys, charset) -> [Integer] (3006.0)

SORT コマンド送り、メールボックス内の メッセージをソートした結果を返します。

...ます。

SORT コマンドは 5256 で定義されています。
詳しくはそちらを参照してください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。

sort_keys にはソート順を決めるキーを文字列...
...ください。

search_key には検索条件を渡します。Net::IMAP#search と
ほぼ同じです。この条件にマッチするメッセージのみがソートされます。

Net::IMAP#examine もしくは
Net::IMAP#select で指定したメールボックスを対象とします。

...
...り値は message sequence number の配列を返します。

例:
p imap.sort(["FROM"], ["ALL"], "US-ASCII")
#=> [1, 2, 3, 5, 6, 7, 8, 4, 9]
p imap.sort(["DATE"], ["SUBJECT", "hello"], "US-ASCII")
#=> [6, 7, 8, 1]
@param sort_key ソート順のキー(文字列配列)
@param search_key 検...

NEWS for Ruby 2.7.0 (84.0)

NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...がデフォルトのブロックの仮引数として
導入されました。 4475

//emlist[][ruby]{
[1, 2, 10].map { _1.to_s(16) } #=> ["1", "2", "a"]
[[1, 2], [3, 4]].map { _1 + _2 } #=> [3, 7]
//}

* 「_1」などはまだローカル変数名として使えて、ローカル変数...
...15931

* Enumerable
* 新規メソッド
* Enumerable#filter_mapが追加されました。 15323
* Enumerable#tallyが追加されました。 11076
//emlist[Enumerable#filter_map][ruby]{
[1, 2, 3].filter_map {|x| x.odd? ? x.to_s : nil } #=> ["1", "3"]
//}
//emlist[Enumerable#tall...
...re "date"
date
s = Enumerator.produce(Date.today, &:succ) #=> infinite sequence of dates
date
s.detect(&:tuesday?) #=> next Tuesday
//}
//emlist[Enumerator::Lazy#eager][ruby]{
a = %w(foo bar baz)
e = a.lazy.map {|x| x.upcase }.map {|x| x + "!" }.eager
p e.class #=> Enumerator
p e.map {|x...

Exception#==(other) -> bool (30.0)

自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。

...require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end

def get_exception
return begin
yield
rescue => e
e
end
end

results = [2, 2, 4].map { |e | get_exception { check_long_month(e) } }
p results.map { |e| e....
...class }
# => [RuntimeError, RuntimeError, RuntimeError]
p results.map { |e| e.message }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]

# class, message, backtrace が同一のため true になる
p results[0] == results[1] # => true

# class, backtrace が同一だ...

tsort (30.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...end
n = ns.first
if Array === n
outputs, inputs, block = n
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 output...
...clude TSort
end

def command(arg)
print arg, "\n"
system arg
end

m = Make.new
m.rule(%w[t1]) { command 'date > t1' }
m.rule(%w[t2]) { command 'date > t2' }
m.rule(%w[t3]) { command 'date > t3' }
m.rule(%w[t4], %w[t1 t3]) { command 'cat t1 t3 > t4' }
m.rule(%w[t5], %w[t4 t2]) { command 'cat t4 t...

絞り込み条件を変える

<< 1 2 > >>