Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Issue 811006: Rewrite the function that converts timestamp to year, month and day in C++. (Closed)

Created:
10 years, 9 months ago by Oleg Eterevsky
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Rewrite the function that converts timestamp to year, month and day in C++. Committed: http://code.google.com/p/v8/source/detail?r=4115

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 14

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -67 lines) Patch
M src/date-delay.js View 1 2 3 3 chunks +44 lines, -53 lines 0 comments Download
M src/macros.py View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/runtime.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 3 chunks +321 lines, -11 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Oleg Eterevsky
I'm not sure about the style details: whether it's ok to create a class in ...
10 years, 9 months ago (2010-03-10 17:14:38 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/811006/diff/8001/9003 File src/runtime.cc (right): http://codereview.chromium.org/811006/diff/8001/9003#newcode5150 src/runtime.cc:5150: class YearMonthDate { Instead of having a class that ...
10 years, 9 months ago (2010-03-11 13:48:53 UTC) #2
Oleg Eterevsky
http://codereview.chromium.org/811006/diff/8001/9003 File src/runtime.cc (right): http://codereview.chromium.org/811006/diff/8001/9003#newcode5150 src/runtime.cc:5150: class YearMonthDate { On 2010/03/11 13:48:53, Mads Ager wrote: ...
10 years, 9 months ago (2010-03-11 15:03:11 UTC) #3
Mads Ager (chromium)
10 years, 9 months ago (2010-03-12 08:00:21 UTC) #4
LGTM with a couple of nits.

http://codereview.chromium.org/811006/diff/14001/15003
File src/runtime.cc (right):

http://codereview.chromium.org/811006/diff/14001/15003#newcode5080
src/runtime.cc:5080: static const int day_from_month[] = {0, 31, 59, 90, 120,
151,
Let's change these constants to follow the Google style as well?  Sorry about
that - I should have noticed on the previous code review.

http://codereview.chromium.org/811006/diff/14001/15003#newcode5145
src/runtime.cc:5145: static const char kDayInYear[] = {
Could you add a comment stating the start and end year for this table?

http://codereview.chromium.org/811006/diff/14001/15003#newcode5246
src/runtime.cc:5246: static const char kMonthInYear[] = {
Comment with start and end year for this table?

http://codereview.chromium.org/811006/diff/14001/15003#newcode5350
src/runtime.cc:5350: int &year, int &month, int &day) {
One parameter per line when splitting like this.  Similarly for the methods
below.

Powered by Google App Engine
This is Rietveld 408576698