Commit graph

8 commits

Author SHA1 Message Date
Andrew Gallant
0ba2c63c85
doc: final touch-ups before 0.2.0 2025-02-10 21:25:29 -05:00
Andrew Gallant
15bbaf983a span: add SpanFieldwise, deprecate Eq and PartialEq for Span
Pretty much what it says on the tin. The idea here is that two different
`Span` values in memory, which compare not equal, might still be the
same duration. Obviously I knew this when I added the trait impl
originally, and realized it could be a footgun, but I thought its
convenience outweighed the footgun. However, I think #32 pretty
convincingly argues that it's the wrong default.

If this ends up being the wrong decision, we can always add the trait
impl back. In particular, I am worried about this making `Span` a very
annoying-to-use type. Not implementing basic equality is just super
annoying because it's common to want it in tests and other various
things where the footgun isn't really relevant. But at least this way,
we can fix the mistake in the future.

Ref #32
2025-01-20 22:25:08 -05:00
Andrew Gallant
4d8a4caa21 api: add in_tz and deprecate intz
This applies to `Zoned`, `Timestamp`, `civil::DateTime` and
`civil::Date`.

Ref #28
2025-01-20 22:25:08 -05:00
Andrew Gallant
464641e8a6 doc: update docs to account for the existence of SignedDuration
This was an oversight. Jiff now has two duration types, so this section
basically needed to be entirely rewritten.
2024-08-31 14:52:02 -04:00
Andrew Gallant
f8cb134b2e
doc: link to chrono maintainer's commentary
Closes #63
2024-08-03 17:16:28 -04:00
Andrew Gallant
41cedac81f
doc: more touchups 2024-07-21 20:46:07 -04:00
Andrew Gallant
51a78d64f7
doc: touchups 2024-07-21 20:32:03 -04:00
Andrew Gallant
e36fc93abd
first substantial commit 2024-07-21 20:15:13 -04:00