C# 클래스 CorvallisBusCoreNetCore.Models.DaysOfWeekUtils

파일 보기 프로젝트 열기: RikkiGibson/Corvallis-Bus-Server

공개 메소드들

메소드 설명
GetDaysOfWeek ( string days ) : DaysOfWeek

Gets all the days of the week contained in the input string using a regular expression.

IsToday ( DaysOfWeek days, DateTimeOffset currentTime ) : bool

Returns a value indicating whether the provided DaysOfWeek value is applicable today.

비공개 메소드들

메소드 설명
ToDaysOfWeek ( DayOfWeek day ) : DaysOfWeek

There is a real reason to have this enum instead of just DayOfWeek-- it's useful to be able to OR days together the way we do.

ToDaysOfWeek ( string day ) : DaysOfWeek

메소드 상세

GetDaysOfWeek() 공개 정적인 메소드

Gets all the days of the week contained in the input string using a regular expression.
public static GetDaysOfWeek ( string days ) : DaysOfWeek
days string
리턴 DaysOfWeek

IsToday() 공개 정적인 메소드

Returns a value indicating whether the provided DaysOfWeek value is applicable today.
public static IsToday ( DaysOfWeek days, DateTimeOffset currentTime ) : bool
days DaysOfWeek
currentTime DateTimeOffset
리턴 bool