Utilize EpochNanoseconds
Solves #119 Started fresh up the code, one test failing in the instant class still.
Im a commits behind, but wanted to merge when the code was working locally first.
Some things i'm unsure about:
- When to use borrowed or owned. Used both in different places, but not sure what is optimal.
- When to use EpochNanoseconds(...) or EpochNanoseconds::try_from(...)?/.unwrap
Thanks!
Let me know if you have any quick comments
Hm. All the previous commits from my previous branch also got added. Will need to check into that as well.
Not so well with git so not sure to do with that mistake.
Updated from your feedback. Thanks!
Added the helper method.
Altered a test, but should have the same functionality?
Note: https://github.com/boa-dev/temporal/pull/452 changes how we look at this type
Closing this PR. We've moved to a bit of a different way of approaching this type. And as addressed by #452, intermediate nanoseconds can be outside of a valid range, which undercuts the initial purpose of expanding EpochNanosecond's use.