Skip to content
Discussion options

You must be logged in to vote

That all looks right to me. I think using a Span here is more convenient. It's possible using SignedDuration will be faster. But you'd have to benchmark it. It doesn't matter too much here because:

  1. You're only dealing with civil datetimes.
  2. You're only dealing with units of days or lower, which for civil datetimes, are invariant in length.

Otherwise, the only other thing I'd comment on is that I don't see any conversions from Excel datetimes to Jiff types. That direction will have a little more trickery to it since I presume it will be fallible.

Also, since Excel can't use the timezone information what is a suitable Cargo.toml include for jiff to get the minimal feature set to support o…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jmcnamara
Comment options

Answer selected by jmcnamara
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants