commit | c89b13b962c6634db536e563a42d058702ce045b | [log] [tgz] |
---|---|---|
author | Leon Scroggins <scroggo@google.com> | Thu Jan 07 18:47:06 2010 -0500 |
committer | Leon Scroggins <scroggo@google.com> | Fri Jan 08 09:18:37 2010 -0500 |
tree | fc37c9e36c7a03c9d68bebe39c5b77b188e1a1c8 | |
parent | affa5d2c0f7c2ade43ded5ff9a7952b269183117 [diff] |
Use Calendar.add() instead of Calendar.roll() Calendar.roll() breaks the year at the beginning of the year, so use add() instead, which changes larger fields. Also, only use 4 bins, since the last bin's boundary is not relevant. Lastly, no need to return Calendar in beginningOfDay. Fixes http://b/issue?id=2361382