C# Class Our.Umbraco.OpeningHours.Extensions.DateTimeExtensions

Various extension methods for DateTime used throughout the package.
Afficher le fichier Open project: bomortensen/Our.Umbraco.OpeningHours

Méthodes publiques

Méthode Description
IsSameDay ( this first, System.DateTime second ) : bool

Gets whether first and second represents the same day.

IsToday ( this date ) : bool

Gets whether the specified date is today.

IsTomorrow ( this date ) : bool

Gets whether the specified date is tomorrow.

Method Details

IsSameDay() public static méthode

Gets whether first and second represents the same day.
public static IsSameDay ( this first, System.DateTime second ) : bool
first this The first date.
second System.DateTime The second date.
Résultat bool

IsToday() public static méthode

Gets whether the specified date is today.
public static IsToday ( this date ) : bool
date this The date date.
Résultat bool

IsTomorrow() public static méthode

Gets whether the specified date is tomorrow.
public static IsTomorrow ( this date ) : bool
date this The date date.
Résultat bool