tadf
1a876fb61e
* ext/date/date_core.c (m_ajd): refers a constant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 12:17:52 +00:00
tadf
1b10d8c327
* ext/date/date_core.c: trivial changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:38:33 +00:00
tadf
97772985f0
* ext/date/date_core.c: modified doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 11:05:24 +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
51a0501a39
* ext/date/date_core.c: refactoring.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-26 13:23:00 +00:00
tadf
3380f2ff6e
* ext/date/date_core.c (date_strftime_internal): removed meaningless braces.
...
* ext/date/date_core.c (gengo): the value should be int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-25 16:03:11 +00:00
tadf
3fbc9440fe
* ext/date/date_core.c (c_valid_{julian,gregorian}_p): fixed the range of month.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-23 15:45:58 +00:00
tadf
2e83b82323
* ext/date/date_core.c: trivial changes on text.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-23 15:15:37 +00:00
tadf
5b16ddf504
* ext/date/date_core.c (datetime_s_*): canonicalize 24 o'clock.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-21 11:42:50 +00:00
tadf
64f6ddb31d
* ext/date/date_core.c: do not define wnum[01].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-17 15:22:10 +00:00
tadf
f2dbf38606
* ext/date/date_core.c: renamed some functions.
...
* ext/date/date_core.c: modified doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-14 13:11:01 +00:00
tadf
1afbc783d4
* ext/date/date_core.c (d_lite_marshal_load): should give converted value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 12:09:22 +00:00
tadf
ef9fe8219c
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-12 11:38:00 +00:00
tadf
67345bfa82
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 16:07:37 +00:00
tadf
8df20d6b16
* ext/date/date_core.c: edited doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 14:24:29 +00:00
tadf
aab8224360
* ext/date/date_core.c: replaced doc for strftime based on Time's one.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 13:32:43 +00:00
tadf
87eeed5103
* ext/date/date_core.c (datetime_s_{iso8601,rfc3339,xmlschema,rfc2822,httpdate}):
...
do not take argument comp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 13:10:04 +00:00
tadf
4a400e5372
* ext/date/date_core.c: added examples.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 12:59:21 +00:00
tadf
a6567f2b99
* ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:36:19 +00:00
tadf
4dbc9af8af
* ext/date/date_core.c: rewrote doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-11 10:25:25 +00:00
nobu
b59179c873
* ext/date/date_core.c (date_s_today, datetime_s_now): check the
...
result of localtime_r().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-07 05:00:04 +00:00
tadf
8676852786
* ext/date/date_core.c: added notes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 12:38:15 +00:00
tadf
2cdd0a87ef
* ext/date/date_core.c: flattened format to strftimev.
...
* ext/date/date_core.c (date_strftime_internal): taints run.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 12:05:12 +00:00
usa
3c9e6c7abb
* ext/date/date_core.c (valid_jd_sub): need to convert from VALUE to
...
double.
* ext/date/date_core.c (offset_to_sec): get rid of a compiler warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-06 05:12:17 +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
6dc8503fa5
* ext/date/date_core.c (d_lite_inspect): changed the format.
...
* ext/date/date_core.c: refactoring and fixing some bugs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-04 08:02:37 +00:00
usa
7bc3e95205
* ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-03 11:59:30 +00:00
tadf
6a158e05c8
* ext/date/date_core.c (offset_to_sec): fixed invalid validation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 14:53:52 +00:00
tadf
899d2c14b0
* ext/date/date_core.c: use simple/complex mode instead of light/right mode.
...
* test/date/*.rb: followed the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 13:28:48 +00:00
tadf
be14985b0c
* ext/date/date_core.c: modified documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-21 16:36:40 +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
tadf
ca5401e481
* ext/date/date_core.c (date_s_test_*): use macros.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-08 07:58:11 +00:00
naruse
1f6a7c18f5
* ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438.
...
check with LONG_MAX and cast as long; without this the calculation
will be done as int and overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-06 08:38:36 +00:00
nobu
66fc78d207
* ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
...
available on all platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-05 13:09:42 +00:00
tadf
322bffd84b
* ext/date/date_core.c (date_zone_to_diff): renamed.
...
* ext/date/date_parse.c: ditto.
* ext/date/date_strptime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:23:05 +00:00
tadf
9fe4a35e67
* ext/date/date_core.c: modified validation methods.
...
* ext/date/lib/date.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 16:02:25 +00:00
tadf
91ee771012
* ext/date/date_core.c (dt_lite_set_tmx): should get df value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:10 +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
448e0d6668
* ext/date/date_core.c: replacement of implementation of
...
_parse. [experimental]
* ext/date/date_parse.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _parse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 12:31:15 +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
531dfb40e0
typo
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 13:43:15 +00:00
tadf
ec01a8813f
* ext/date/date_core.c: replacement of implementation of
...
_strptime. [experimental]
* ext/date/date_strptime.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _strptime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-16 12:58:28 +00:00
naruse
09a4ae1bbc
* ext/date/date_core.c (date_s_today): use int for year.
...
* ext/date/date_core.c (datetime_s_now): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-28 02:41:31 +00:00
tadf
ea490ced11
* ext/date/date_core.c: removed unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-27 02:20:17 +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
c85be42589
* lib/test/unit/parallel.rb: remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-21 21:42:23 +00:00
tadf
7adef00759
* ext/date/date_strftime.c: removed unused code and arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-20 13:49:27 +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
tadf
ec40f71690
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-11 17:28:44 +00:00