Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(704)

Issue 6457089: Add convenience constructor for DateTime (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by rmistry
Modified:
13 years, 3 months ago
Reviewers:
yanivi
Base URL:
https://google-http-java-client.googlecode.com/hg/
Visibility:
Public.

Description

Related to http://code.google.com/p/google-api-java-client/issues/detail?id=583 : Use DateValue objects for "date" values.

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M google-http-client/src/main/java/com/google/api/client/util/DateTime.java View 1 1 chunk +15 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/util/DateTimeTest.java View 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 3
rmistry
13 years, 3 months ago (2012-08-07 16:09:32 UTC) #1
yanivi
LGTM http://codereview.appspot.com/6457089/diff/1/google-http-client/src/main/java/com/google/api/client/util/DateTime.java File google-http-client/src/main/java/com/google/api/client/util/DateTime.java (right): http://codereview.appspot.com/6457089/diff/1/google-http-client/src/main/java/com/google/api/client/util/DateTime.java#newcode85 google-http-client/src/main/java/com/google/api/client/util/DateTime.java:85: * Instantiates {@link DateTime} from an RFC 3339 ...
13 years, 3 months ago (2012-08-16 20:07:04 UTC) #2
rmistry
13 years, 3 months ago (2012-08-17 12:00:01 UTC) #3
http://codereview.appspot.com/6457089/diff/1/google-http-client/src/main/java...
File google-http-client/src/main/java/com/google/api/client/util/DateTime.java
(right):

http://codereview.appspot.com/6457089/diff/1/google-http-client/src/main/java...
google-http-client/src/main/java/com/google/api/client/util/DateTime.java:85: *
Instantiates {@link DateTime} from an RFC 3339 date/time value.
On 2012/08/16 20:07:04, yanivi wrote:
> please refrence link http://tools.ietf.org/html/rfc3339

Done.

http://codereview.appspot.com/6457089/diff/1/google-http-client/src/main/java...
google-http-client/src/main/java/com/google/api/client/util/DateTime.java:90:
DateTime dateTime = parseRfc3339(value);
On 2012/08/16 20:07:04, yanivi wrote:
> A more elegant implementation would be to move the implementation of
> parseRfc3339 into the constructor and have the implementation of parseRfc3339
> instead be simply "return new DateTime(str);".  But this is too minor, so for
> now a simple TODO would suffice.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b