303件ヒット
[201-300件を表示]
(0.033秒)
ライブラリ
- date (48)
- e2mmap (12)
- logger (9)
-
net
/ imap (24) - prettyprint (24)
-
rdoc
/ markup / formatter (12) -
rexml
/ document (36) -
rubygems
/ defaults (12) -
rubygems
/ format (36) -
rubygems
/ installer (24) -
rubygems
/ old _ format (36) - scanf (6)
- time (24)
クラス
- Date (24)
- DateTime (24)
-
Gem
:: Format (36) -
Gem
:: Installer (24) -
Gem
:: OldFormat (36) - Logger (9)
-
Net
:: IMAP (24) - PrettyPrint (24)
-
RDoc
:: Markup :: Formatter (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: Formatters :: Pretty (12) -
REXML
:: Formatters :: Transitive (12) -
Scanf
:: FormatString (6) - Time (24)
モジュール
- Exception2MessageMapper (12)
- Gem (12)
キーワード
-
_ strptime (24) -
def
_ exception (6) -
default
_ exec _ format (12) -
exec
_ format (12) -
exec
_ format= (12) -
format
_ date (12) -
format
_ datetime (12) -
from
_ file _ by _ path (24) -
from
_ io (24) - new (87)
-
singleline
_ format (12) - strptime (48)
検索結果
先頭5件
- Gem
:: Format . new(gem _ path) - Scanf
:: FormatString . new(str) - Logger
. new(logdev , shift _ age = 0 , shift _ size = 1048576 , level: Logger :: Severity :: DEBUG , progname: nil , formatter: Formatter . new , datetime _ format: nil , shift _ period _ suffix: & # 39;%Y%m%d& # 39;) -> Logger - Exception2MessageMapper
. def _ e2message(klass , exception _ class , message _ format) -> Class - Time
. strptime(date , format , now=self . now) -> Time
-
Gem
:: Format . new(gem _ path) (6001.0) -
自身を初期化します。
自身を初期化します。
@param gem_path Gem ファイルのパスを指定します。 -
Scanf
:: FormatString . new(str) (6001.0) -
@todo
@todo -
Logger
. new(logdev , shift _ age = 0 , shift _ size = 1048576 , level: Logger :: Severity :: DEBUG , progname: nil , formatter: Formatter . new , datetime _ format: nil , shift _ period _ suffix: & # 39;%Y%m%d& # 39;) -> Logger (614.0) -
Logger オブジェクトを生成します。
...ます。省略した場合は nil です。
@param formatter ログに記録する時のログのフォーマッタを指定します。
省略した場合は Logger::Formatter インスタンスです。
@param datetime_format ログに記録する時の日時のフォーマッ......open('foo.log', File::WRONLY | File::APPEND | File::CREAT)
logger = Logger.new(file, 'daily')
logger = Logger.new(file, level: :info)
logger = Logger.new(file, progname: 'progname')
logger = Logger.new(file, formatter: formatter)
logger = Logger.new(file, datetime_format: '%Y-%m-%d %H:%M:%S')
//}... -
Exception2MessageMapper
. def _ e2message(klass , exception _ class , message _ format) -> Class (224.0) -
すでに存在する例外クラス exception_class に、 エラーメッセージ用フォーマット message_format を関連づけます。
...ッセージ用フォーマット message_format を関連づけます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class メッセージを登録する例外クラスを指定します。
@param message_format メッセージのフォーマットを指... -
Time
. strptime(date , format , now=self . now) -> Time (209.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...me('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date 時刻を表す文字列
@param format 書式文字列... -
Time
. strptime(date , format , now=self . now) {|y| . . . } -> Time (209.0) -
文字列を Date._strptime を用いて Time オブジェクト に変換します。
...me('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-05-18 04:13:00 +0900
詳しくは DateTime.strptime, Date.strptime を見てください。
@param date 時刻を表す文字列
@param format 書式文字列... -
Date
. _ strptime(str , format = & # 39;%F& # 39;) -> Hash (208.0) -
このメソッドは Date.strptime と似ていますが、日付オブジェクトを生成せずに、 見いだした要素をハッシュで返します。
...付オブジェクトを生成せずに、
見いだした要素をハッシュで返します。
@param str 日付をあらわす文字列
@param format 書式文字列
書式文字列に使用できるものは以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日... -
Date
. strptime(str = & # 39;-4712-01-01& # 39; , format = & # 39;%F& # 39; , start = Date :: ITALY) -> Date (208.0) -
与えられた雛型で日付表現を解析し、 その情報に基づいて日付オブジェクトを生成します。
...してください。
また strptime(3)、および Date#strftime も参照してください。
@param str 日付をあらわす文字列
@param format 書式
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日付になる......してください。
また strptime(3)、および Date#strftime も参照してください。
@param str 日付をあらわす文字列
@param format 書式
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise Date::Error 正しくない日付になる組... -
DateTime
. _ strptime(str , format = & # 39;%FT%T%z& # 39;) -> Hash (208.0) -
与えられた雛型で日時表現を解析し、その情報に基づいてハッシュを生成します。
...雛型で日時表現を解析し、その情報に基づいてハッシュを生成します。
@param str 日時をあらわす文字列
@param format 書式
例:
require 'date'
DateTime._strptime('2001-02-03T12:13:14Z')
# => {:year=>2001, :mon=>2, :mday=>3, :hour=>12, :min=>13, :sec=>14,... -
DateTime
. strptime(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , format = & # 39;%FT%T%z& # 39; , start = Date :: ITALY) -> DateTime (208.0) -
与えられた雛型で日時表現を解析し、 その情報に基づいて DateTime オブジェクトを生成します。
...現を解析し、
その情報に基づいて DateTime オブジェクトを生成します。
@param str 日時をあらわす文字列
@param format 書式
@param start グレゴリオ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時になる組... -
Exception2MessageMapper
. def _ exception(klass , exception _ name , message _ format , superklass = StandardError) -> Class (208.0) -
exception_name という名前の例外クラスを定義します。
...上となるクラス名を指定します。
@param exception_name 例外クラスの名前をシンボルで指定します。
@param message_format メッセージのフォーマットを指定します。
Kernel.#sprintf のフォーマット文字列と同じ形式を使...