summaryrefslogtreecommitdiff
path: root/ext/date/date_strftime.c
AgeCommit message (Collapse)Author
2021-09-28[ruby/date] Make %v strftime flag use uppercase monthJeremy Evans
%v is supposed to be the VMS date, and VMS date format uses an uppercase month. Ruby 1.8 used an uppercase month for %v, but the behavior was changed without explanation in r31672. Time#strftime still uses an uppercase month for %v, so this change makes Date#strftime consistent with Time#strftime. Fixes [Bug #13810] https://github.com/ruby/date/commit/56c489fd7e
2016-06-14date_strftime.c: check precisionnobu
* ext/date/date_strftime.c (date_strftime_with_tmx): reject too large precision to get rid of buffer overflow. reported by Guido Vranken <guido AT guidovranken.nl>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-16* configure.in: check struct timeval exist or not.kosaki
* include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL properly. and don't include sys/time.h if struct timeval exist. * file.c: include sys/time.h explicitly. * random.c: ditto. * thread_pthread.c: ditto. * time.c: ditto. * ext/date/date_strftime.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-20Fixed warning for implicit conversion from size_t to intryan
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-04 * ext/date/date_{core,strftime}.c: [ruby-core:46990].tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-16 * ext/date/date_tmx.h: offset in struct tmx_funcs is now int.tadf
* ext/date/date_strftime.c: ditto. * ext/date/date_core.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-27 * ext/date/date_strftime.c: allows %Ok and %Ol.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-26 * ext/date/date_strftime.c: reduced the code.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-15 * ext/date/date_strftime.c: should also be aware of flags ontadf
complex specifier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-14trivial changestadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-13trivial changestadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-13 * ext/date/date_strftime.c: removed unused code and changed the style.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-13 * ext/date/date_strftime.c: refactored.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-08 * ext/date/date_strftime.c: gets the value with range() consistetly.tadf
* ext/date/date_strftime.c (range): now just replaces the given item. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-03 * ext/date/date_strftime.c: reassigned some variables.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 * ext/date/date_core.c: an issue that is same as [ruby-dev:44071].tadf
* ext/date/date_strftime.c: identical to [ruby-dev:44112]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-29 * ext/date/date_core.c: avoided using timev.tadf
* ext/date/date_strftime.c: ditto. * ext/date/date_tmx.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-05 * ext/date/date_core.c (m_real_cwyear): new. derived from m_cwyear.tadf
* ext/date/date_strftime.c: trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-05 * ext/date/date_tmx.h: now does not place decoded data. allows totadf
access indirectly via functions on demand. * ext/date/date_strftime.c: ditto. * ext/date/date_core.c: ditto. * ext/date/date_core.c ({d|dt}_lite_to_s): use strftime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 * ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 * ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.tadf
* ext/date/lib/{date,date/format}.rb: removed nearly all code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23* ext/date/date_core.c (leap_p): surpress warning: parentheses.naruse
* ext/date/date_core.c (date_s__parse_internal): remove unused variable "str". * ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT. * ext/date/date_strftime.c (date_strftime_with_tmx): remove unused variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 * ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.tadf
* ext/date/date_tmx.h: new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 * ext/date/date_strftime.c (date_strftime_wo_timespec): changedtadf
the way of validation of locale modifiers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25time(3)'s argument and return value is time_t.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25 * ext/date/date_core.c: should not force cast with macros.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21* ext/date/date_strftime.c (date_strftime_wo_timespec):naruse
surpress warning: shorten-64-to-32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 * ext/date/date_strftime.c: checks duplicated modifiers.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 * ext/date/date_strftime.c: removed unused code and arguments.tadf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 * ext/date/date_core.c: replacement of implementation oftadf
strftime. It has some limitations that is same as Time's one. [experimental] * ext/date/date_strftime.c: new. * ext/date/lib/date/format.c: removed ruby version of strftime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e