Skip to content

Conversation

@thiemowmde
Copy link
Contributor

@thiemowmde thiemowmde commented Jul 20, 2017

getYear, getMonth, and so on are all unused. Instead I store the whole timestamp string now.

I keep the parsing and rebuilding that was done before in the getTimestamp method, even if I believe this is unused. This class is used to store values as they are coming from the backend. These values should always be in a strictly fixed format. But it's hard to prove this. At least the padding of the year must be flexible.

Note that getSortKey will be removed with #115. If this is done this code can be simplified even further, I believe, to the point where we just get rid of the pad function.

@thiemowmde thiemowmde requested a review from Ladsgroup July 20, 2017 15:16
@Ladsgroup Ladsgroup merged commit 05f2d96 into master Jul 20, 2017
@thiemowmde thiemowmde deleted the timeValueGetters branch July 20, 2017 19:02
@thiemowmde thiemowmde modified the milestone: 0.9.0 Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants