New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a Foundation Date
from Value
#36
Comments
Yep, this is probably correct for what you're trying to do. All calendar values represents ranges of possible instants. When you're asking for "5 minutes from now", you're getting back a value that contains all possible Technically, any The And then once you've got an All this to say that yes, this is correct. 😁 |
@davedelong thanks so much for the quick response! This actually helps tighten my understanding quite a bit, I think I was missing the key point about values being ranges, not singular points. Thank you!! |
Thanks! That helped me a lot. Did I miss this in the documentation? If not I'd suggest that it should be mentioned somewhere explicitly because after reading in the docs I was under the impression that converting back to |
Hey there,
Thank you for this fantastic library!! Quick question that I couldn't find in the docs (hopefully I didn't just miss it).
I need to calculate a date 5 minutes from now in UTC. Here's what I'm doing:
I'm clear on everything up until
.firstInstant.date
- that was the only way I could find to pull a FoundationDate
out of my addition operation. Does that seem right?Thank you again!
The text was updated successfully, but these errors were encountered: