Bug #589
Time#strftime
| Status: | Closed | Start date: | 09/24/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | doc | |||
| Target version: | - | |||
| reporter: | ruby_version: | 1.9 |
Description
> 現在の実装では、このメソッドは、システムの [[man:strftime(3)]] > をそのまま使用しています。そのためここにあげた指示子以外のものが使 > 用できる場合があります。ただし、上記以外の指示子を使用した場合、移 > 植性をそこなう可能性がある点に注意してください。 とありますが、1.9では独自実装を使うようになり、ミリ秒やナノ秒、_や-などのフラグも使えるようになっています。
Associated revisions
apply a patch from Tomohiko Himura (fix #589)
History
Updated by Tomohiko Himura over 1 year ago
- File Time.patch added
rdocとstrftime.cの中身を確認しつつ記述してみました。 パッチを添付します。 -や_のフラグのサンプルが実用的な例にするか悩みましたが、別の実行例と対比する形にしてみました。
Updated by okkez _ over 1 year ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r4319. Kazuhiro, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.