Project

General

Profile

Actions

Bug #780

closed

Time#strftime で、フラグ 0 が幅と解釈される

Added by tadf (tadayoshi funaba) over 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:

Description

=begin
$ ./ruby -e "p Time.mktime(1970,1,1).strftime('%0N')"
""

%0N、%0L が幅が零の文字列を作り出します。しかし、0 は一貫し
てフラグとして解釈されるべきだと思います。
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0