Skip to content

Releases: GiyoMoon/astrolabe

v0.5.0

08 Oct 18:58
v0.5.0
663ab6e
Compare
Choose a tag to compare

Astrolabe can now get the local timezone offset on UNIX systems.

use astrolabe::{DateTime, Offset, OffsetUtilities, Precision};

// Equivalent to `DateTime::now().set_offset(Offset::Local)`
let now = DateTime::now_local();
// Prints for example:
// 2023-10-08T08:30:00+02:00
println!("{}", now.format_rfc3339(Precision::Seconds));
assert_eq!(Offset::Local, now.get_offset());

Also, we decided to panic in case of a date overflow. This should not happen if the library is used correctly, as the valid date range is between 30. June -5879611..=12. July 5879611. This change makes the API much easier to use, as many functions only returned a Result because of this edge case.

Please check out the changelog for details.

v0.4.0

18 May 09:24
v0.4.0
Compare
Choose a tag to compare

This release brings a lot of public API changes to make things more convenient to use.

It also adds CronSchedule, a struct for parsing cron expressions and using them to create matching DateTime structs.

Please check out the changelog for details.

v0.3.0

11 Apr 19:37
v0.3.0
9114104
Compare
Choose a tag to compare

See the changelog for details.

v0.2.0

25 Aug 18:02
fd34508
Compare
Choose a tag to compare

See the changelog for details.