dry-rb / dry-effects

Algebraic effects in Ruby
https://dry-rb.org/gems/dry-effects/
MIT License
112 stars 20 forks source link

Timestamp effect #57

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

It's a twin of CurrentTime; the difference is in semantics. You want to use timestamps in places not affecting the business logic of your applications. It doesn't have fixed: true since it doesn't make a lot of sense for timestamps. Instead, you can set step: 0 if needed.

flash-gordon commented 5 years ago

I tested it and it works really well