* time.c (time_succ): Time#succ should return a time object in the
same timezone mode to the original. [ruby-talk:260256] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4d16ce7da4
commit
73c8156360
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jul 18 08:47:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* time.c (time_succ): Time#succ should return a time object in the
|
||||||
|
same timezone mode to the original. [ruby-talk:260256]
|
||||||
|
|
||||||
Mon Jul 16 23:07:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon Jul 16 23:07:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* lib/base64.rb (Base64::b64encode): should not specify /o option
|
* lib/base64.rb (Base64::b64encode): should not specify /o option
|
||||||
|
7
time.c
7
time.c
@ -1337,9 +1337,14 @@ static VALUE
|
|||||||
time_succ(VALUE time)
|
time_succ(VALUE time)
|
||||||
{
|
{
|
||||||
struct time_object *tobj;
|
struct time_object *tobj;
|
||||||
|
int gmt;
|
||||||
|
|
||||||
GetTimeval(time, tobj);
|
GetTimeval(time, tobj);
|
||||||
return rb_time_new(tobj->tv.tv_sec + 1, tobj->tv.tv_usec);
|
gmt = tobj->gmt;
|
||||||
|
time = rb_time_new(tobj->tv.tv_sec + 1, tobj->tv.tv_usec);
|
||||||
|
GetTimeval(time, tobj);
|
||||||
|
tobj->gmt = gmt;
|
||||||
|
return time;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#define RUBY_VERSION "1.9.0"
|
#define RUBY_VERSION "1.9.0"
|
||||||
#define RUBY_RELEASE_DATE "2007-07-17"
|
#define RUBY_RELEASE_DATE "2007-07-18"
|
||||||
#define RUBY_VERSION_CODE 190
|
#define RUBY_VERSION_CODE 190
|
||||||
#define RUBY_RELEASE_CODE 20070717
|
#define RUBY_RELEASE_CODE 20070718
|
||||||
#define RUBY_PATCHLEVEL 0
|
#define RUBY_PATCHLEVEL 0
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
@ -9,7 +9,7 @@
|
|||||||
#define RUBY_VERSION_TEENY 0
|
#define RUBY_VERSION_TEENY 0
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 7
|
#define RUBY_RELEASE_MONTH 7
|
||||||
#define RUBY_RELEASE_DAY 17
|
#define RUBY_RELEASE_DAY 18
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user