Table of Contents

Minute of Hour

MinuteOfHour is a Cron-like Schedule that recurs every specified minute of each hour

Note

minute must be between 0 and 59. Any other value will be round down or up


DateTime[] dates =
[
    new(2022, 1, 1, 1, 26, 0, DateTimeKind.Utc),
    new(2022, 1, 1, 1, 1, 0, DateTimeKind.Utc),
    new(2022, 1, 1, 1, 47, 0, DateTimeKind.Utc),
];

Schedule minuteOfHour = Schedule.MinuteOfHour(2, dates.ToTestProvider());

Date Duration Result
Saturday, 01 January 2022 01:26 36 minutes Saturday, 01 January 2022 02:02
Saturday, 01 January 2022 01:01 1 minute Saturday, 01 January 2022 01:02
Saturday, 01 January 2022 01:47 15 minutes Saturday, 01 January 2022 02:02