Open shivangp76 opened 1 month ago
seems fixed by #41
This is more of a general question, throughout the crate. #41 is only for a specific function. For example, could Card.elapsed_days
be an f64
instead of an i64
? Could the following be changed to utilize something like num_fractional_days()
mentioned in the original request?
I was wondering if there would by any interest in supporting fractional days.
Chrono's
.num_days()
does not round the number of days. See this Rust playground.A possible solution is to implement something like this: