Skip to content

Add method to get next openings hours set #21

@bjarnef

Description

@bjarnef

I would be useful to have an method to get next opening hours, e.g. GetNextOpeningHours()
Maybe with the option to choose whether it should take today into account - maybe with the change of #15

For now I do like this:

var nextDays = openingHours.GetUpcomingDays(7);
var nextDayOpen = nextDays.Where(x => x.IsOpen && !x.IsToday).FirstOrDefault();
<p>We are opening again on @nextDayOpen.WeekDayName at @nextDayOpen.Items[0].Opens.ToString(@"HH\:mm")</p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions