1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

15 commits

Author SHA1 Message Date
tadf
f99bed9330 * ext/date/date_core.c: an issue that is same as [ruby-dev:44071].
* 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-07-23 11:17:00 +00:00
tadf
23658b355c * ext/date/date_core.c: avoided using timev.
* 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-29 14:47:04 +00:00
tadf
64097bd733 * ext/date/date_core.c (m_real_cwyear): new. derived from m_cwyear.
* 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 08:53:56 +00:00
tadf
a975bf245f * ext/date/date_tmx.h: now does not place decoded data. allows to
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-06-05 01:13:19 +00:00
tadf
1f35d2485c * ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 13:47:18 +00:00
tadf
559c025a22 * ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.
* 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-05-21 12:25:03 +00:00
naruse
c34db58913 * ext/date/date_core.c (leap_p): surpress warning: parentheses.
* 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-23 17:34:55 +00:00
tadf
2b6ab9bf1e * ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.
* 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 15:22:47 +00:00
tadf
10ce57ea8d * ext/date/date_strftime.c (date_strftime_wo_timespec): changed
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-04-16 13:26:15 +00:00
naruse
700b778cbb time(3)'s argument and return value is time_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25 20:29:53 +00:00
tadf
e358888d5e * ext/date/date_core.c: should not force cast with macros.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-25 13:01:06 +00:00
naruse
f9819d0374 * ext/date/date_strftime.c (date_strftime_wo_timespec):
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-21 21:49:00 +00:00
tadf
d9dd52acbf * ext/date/date_strftime.c: checks duplicated modifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 14:11:16 +00:00
tadf
e48047fe0c * ext/date/date_strftime.c: removed unused code and arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 13:34:44 +00:00
tadf
434157444f * ext/date/date_core.c: replacement of implementation of
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
2011-03-20 12:44:47 +00:00