-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boa_temporal
structure changes and docs update (#3504)
* API changes and docs update * cargo fmt all
- Loading branch information
Showing
31 changed files
with
155 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
boa_temporal/src/calendar/iso.rs → boa_temporal/src/components/calendar/iso.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
boa_temporal/src/date.rs → boa_temporal/src/components/date.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
boa_temporal/src/datetime.rs → boa_temporal/src/components/datetime.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//! The primary date-time components provided by Temporal. | ||
//! | ||
//! The below components are the main primitives of the `Temporal` specification: | ||
//! - `Date` -> `PlainDate` | ||
//! - `DateTime` -> `PlainDateTime` | ||
//! - `Time` -> `PlainTime` | ||
//! - `Duration` -> `Duration` | ||
//! - `Instant` -> `Instant` | ||
//! - `MonthDay` -> `PlainMonthDay` | ||
//! - `YearMonth` -> `PlainYearMonth` | ||
//! - `ZonedDateTime` -> `ZonedDateTime` | ||
//! | ||
//! The Temporal specification, along with this implementation aims to provide | ||
//! full support for time zones and non-gregorian calendars that are compliant | ||
//! with standards like ISO 8601, RFC 3339, and RFC 5545. | ||
|
||
// TODO: Expand upon above introduction. | ||
|
||
pub mod calendar; | ||
pub mod tz; | ||
|
||
mod date; | ||
mod datetime; | ||
pub(crate) mod duration; | ||
mod instant; | ||
mod month_day; | ||
mod time; | ||
mod year_month; | ||
mod zoneddatetime; | ||
|
||
#[doc(inline)] | ||
pub use date::Date; | ||
#[doc(inline)] | ||
pub use datetime::DateTime; | ||
#[doc(inline)] | ||
pub use duration::Duration; | ||
#[doc(inline)] | ||
pub use instant::Instant; | ||
#[doc(inline)] | ||
pub use month_day::MonthDay; | ||
#[doc(inline)] | ||
pub use time::Time; | ||
#[doc(inline)] | ||
pub use year_month::YearMonth; | ||
#[doc(inline)] | ||
pub use zoneddatetime::ZonedDateTime; |
6 changes: 3 additions & 3 deletions
6
boa_temporal/src/month_day.rs → boa_temporal/src/components/month_day.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
boa_temporal/src/time.rs → boa_temporal/src/components/time.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
boa_temporal/src/year_month.rs → boa_temporal/src/components/year_month.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.