Project

General

Profile

Actions

Bug #779

closed

Time#strftime が正しく機能しない

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

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

Description

=begin
以下のように、%w の結果が得られない事があるようです。

$ ./ruby -e "p Time.mktime(1970,1,18).strftime('%Y %U %w')"
"1970 03 "

0 である場合におかしいのかもしれません。

$ ./ruby -e "p Time.mktime(1970,1,17).strftime('%Y %U %w')"
"1970 02 6"
$ ./ruby -e "p Time.mktime(1970,1,19).strftime('%Y %U %w')"
"1970 03 1"
=end

Actions #1

Updated by matz (Yukihiro Matsumoto) over 15 years ago

  • Status changed from Open to Closed

=begin
fixed by r20338.
=end

Actions

Also available in: Atom PDF

Like0
Like0