speedate icon indicating copy to clipboard operation
speedate copied to clipboard

Fast and simple datetime, date, time and duration parsing for rust.

Results 11 speedate issues
Sort by recently updated
recently updated
newest added

Use [Tarpaulin](https://github.com/xd009642/tarpaulin) or similar for coverage which should allow tests to be split into multiple files, split tests.

enhancement

Better support for the [Proleptic Gregorian calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar) for timestamps. Basically go back before 1600 to 0 BCE. Doubt many people will need this, but technically I think it would be...

option to always consider timestamps as seconds.

Again to match python better and allow times with timezones. My mistake, didn't notice python times can have timezones. Should also rename to `tz_offset` to be more explicit.

additional package instaled https://pypi.org/project/tzdata/ since i encountered this while implementing mirror your serialization of time for beanie you will encounter error that if you stuck time into .tzinfo.utcoffset it will...

The `DateTime::parse_str(...)` constructor supports various different formats, but millisecond-granularity timestamps are parsed incorrectly when they have a fractional part. Testcase to reproduce: ```rust use speedate::DateTime; fn timestamp_ms(dt: DateTime) -> i64...

fix [pydantic/pydantic#8570](https://github.com/pydantic/pydantic/issues/8570)

As discussed in https://github.com/pydantic/pydantic/issues/7940, we wish to be able to explicitly specify the unit in which unix timestamsp are to be interpreted. See comments below for additional context

In #51 we looked at using `lexical-core` in one specific case and decided instead to go with #52 for simplicity for now. However in principle `lexical-core` should be more accurate...