pub struct Schedule { /* private fields */ }
Implementations§
Source§impl Schedule
impl Schedule
Sourcepub fn upcoming(&self, timezone: TimeZone) -> ScheduleIterator<'_> ⓘ
pub fn upcoming(&self, timezone: TimeZone) -> ScheduleIterator<'_> ⓘ
Provides an iterator which will return each DateTime that matches the schedule starting with the current time if applicable.
Sourcepub fn upcoming_owned(&self, timezone: TimeZone) -> OwnedScheduleIterator ⓘ
pub fn upcoming_owned(&self, timezone: TimeZone) -> OwnedScheduleIterator ⓘ
The same, but with an iterator with a static ownership
Sourcepub fn after(&self, after: &Zoned) -> ScheduleIterator<'_> ⓘ
pub fn after(&self, after: &Zoned) -> ScheduleIterator<'_> ⓘ
Like the upcoming
method, but allows you to specify a start time other than the present.
Sourcepub fn after_owned(&self, after: Zoned) -> OwnedScheduleIterator ⓘ
pub fn after_owned(&self, after: Zoned) -> OwnedScheduleIterator ⓘ
The same, but with a static ownership.
pub fn includes(&self, date_time: Zoned) -> bool
Sourcepub fn years(&self) -> &impl TimeUnitSpec
pub fn years(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the years included in this Schedule.
Sourcepub fn months(&self) -> &impl TimeUnitSpec
pub fn months(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the months of the year included in this Schedule.
Sourcepub fn days_of_month(&self) -> &impl TimeUnitSpec
pub fn days_of_month(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the month included in this Schedule.
Sourcepub fn days_of_week(&self) -> &impl TimeUnitSpec
pub fn days_of_week(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the days of the week included in this Schedule.
Sourcepub fn hours(&self) -> &impl TimeUnitSpec
pub fn hours(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the hours of the day included in this Schedule.
Sourcepub fn minutes(&self) -> &impl TimeUnitSpec
pub fn minutes(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the minutes of the hour included in this Schedule.
Sourcepub fn seconds(&self) -> &impl TimeUnitSpec
pub fn seconds(&self) -> &impl TimeUnitSpec
Returns a TimeUnitSpec describing the seconds of the minute included in this Schedule.