From 63846d48a9b2044ad2fb3062ca8551de078d3508 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 28 Aug 2008 17:06:20 +0000 Subject: * strftime.c (rb_strftime): supported %s and %P. * time.c (time_strftime): ditto. * test/ruby/test_time.rb (test_strftime): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'time.c') diff --git a/time.c b/time.c index b111bca647..e54c655059 100644 --- a/time.c +++ b/time.c @@ -2091,6 +2091,8 @@ rb_strftime_alloc(char **buf, const char *format, * %6N microsecond (6 digits) * %9N nanosecond (9 digits) * %p - Meridian indicator (``AM'' or ``PM'') + * %P - Meridian indicator (``am'' or ``pm'') + * %s - Number of seconds since 1970-01-01 00:00:00 UTC. * %S - Second of the minute (00..60) * %U - Week number of the current year, * starting with the first Sunday as the first -- cgit v1.2.3