Skip to content

Conversation

@joeroot
Copy link

@joeroot joeroot commented Jun 25, 2013

Currently, an Experiment's start_time is stored using Time's to_s method. If this is overridden, parsing fails when the date is later retrieved. Instead, I suggest using UNIX integer timestamps. Though UNIX integer representations are used, they are stored as strings and are backwards compatable with prior representations.

Though UNIX integer representations are used, they are stored as strings
and are backwards compatable with the Time stamp representations.
@andrew
Copy link
Member

andrew commented Jun 25, 2013

Looks great, thanks!

andrew added a commit that referenced this pull request Jun 25, 2013
Stores and parses Experiment's start_time as a UNIX integer.
@andrew andrew merged commit 2870823 into splitrb:master Jun 25, 2013
@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling ed01807 on joeroot:issue-175 into ddbfbcd on andrew:master.

@joeroot
Copy link
Author

joeroot commented Jun 25, 2013

Thanks for a great gem! One thing which might be worth thinking about is whether start_time should belong to an experiment version, rather than to the experiment as a whole. This would mean that when an experiment is reset, the start time would effectively be reset for the experiment too.

@andrew
Copy link
Member

andrew commented Jun 29, 2013

That's a good point, I'll open it up as a separate issue, cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants