summaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-12 12:07:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-12 12:07:49 +0000
commit3686f4b255800f11b9c903e5fddb0f31bd80400d (patch)
treed5887cdf60176e2fa75dfc62cabc0b86f5cd769c /NEWS
parent5cb8d997a0f092fe9f246fa0d6f3bcbddaa62bd1 (diff)
downloadruby-3686f4b255800f11b9c903e5fddb0f31bd80400d.tar.gz
ruby-3686f4b255800f11b9c903e5fddb0f31bd80400d.tar.xz
ruby-3686f4b255800f11b9c903e5fddb0f31bd80400d.zip
* time.c: support fixed UTC offset. [ruby-dev:38326]
(leap_year_v_p): new macro. (TIME_FIXOFF_P): new macro. (TIME_SET_FIXOFF): new macro. (time_init_0): renamed from time_init. (time_set_utc_offset): new function. (vtm_add_offset): new function. (utc_offset_arg): new function. (time_init_1): new function. (time_init): call time_init_0 or time_init_1 according argc. (validate_utc_offset): new function. (time_localtime_m): new function. (time_fixoff): new function. (time_getlocaltime): take optional UTC offset argument. (time_get_tm): support fixed UTC offset time. (Init_Time): make Time#{initialize,localtime,getlocal} varargs. * strftime.c (rb_strftime): vtm->zone can be NULL now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 560f4ee59..b7a165896 100644
--- a/NEWS
+++ b/NEWS
@@ -51,6 +51,8 @@ with all sufficient information, see the ChangeLog file.
* extended feature:
* time_t restriction is removed to represent before 1901 and after 2038.
Proleptic Gregorian calendar is used for old dates.
+ * Time.new have optional arguments to specify date with time offset.
+ * Time#getlocal, Time#localtime have optional time offset argument.
* incompatible changes:
* The year argument of Time.{utc,gm,local,mktime} is now interpreted as