Skip to content

Add From and TryFrom for MlsTime #281

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mgeisler
Copy link
Contributor

Description of changes:

Adds two simple conversions for MlsTime: From<Duration> and TryFrom<SystemTime>.

Call-outs:

The existing from_duration_since_epoch could be removed or marked deprecated in preparation for the 1.0 release.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.

This just aligns better with the existing `From<u64>` conversion.
@mgeisler mgeisler requested a review from a team as a code owner May 12, 2025 13:59
@mgeisler
Copy link
Contributor Author

Just a few conversions I found I needed while working with certificate validation.

@mgeisler
Copy link
Contributor Author

Thanks for the review! Will you be able to fix the new unrelated warnings? Closing and re-opening the PR should be enough to create a new test run against the latest main then.

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