public static IEnumerable <LocalDateTime> HourlyLocal(LocalDateTimeRange range) { LocalDateTime c = range.Start; while (c < range.End) { yield return(c); c = c.PlusHours(1); } }
public static IEnumerable <Instant> HourlyUtc(LocalDateTimeRange range, string timezone) { return(HourlyUtc(range.InZone(timezone))); }