Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Limit the formedOn and adoptedOn to seconds. #38

Open
ramondelafuente opened this issue Aug 10, 2017 · 0 comments
Open

Limit the formedOn and adoptedOn to seconds. #38

ramondelafuente opened this issue Aug 10, 2017 · 0 comments

Comments

@ramondelafuente
Copy link
Member

Currently, the Herd and ElePHPant models both use a DateTime type for formedOn and adoptedOn respectively.

The precision of these times can be limited to seconds, because that is the most precise value the domain is interested in. This means creating value objects that disregard the microseconds.

It also warrants the creation of a system clock that can be used to retrieve the system time.

See http://rosstuck.com/precision-through-imprecision-improving-time-objects

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant