C# Class MeetingManager.DateTimeUtils

ファイルを表示 Open project: OfficeDev/Interop-REST-Mail-Contacts-Calendar-Sample

Public Methods

Method Description
BuildRecurrentDate ( Meeting recurrence ) : string
DateToApiString ( this dateTime ) : string
DateToFullApiUtcString ( this dateTime ) : string
GetDaysOfWeek ( ) : IEnumerable
ToLocalTime ( this dateTime ) : System.DateTime
ToUtcTime ( this localDateTime ) : System.DateTime

Private Methods

Method Description
ApiOrdinalToLocalOrdinal ( string index ) : string
CalculateDayDiff ( DateTimeOffset date, List days ) : int
CalculateEndDate ( Meeting recurrence ) : DateTimeOffset
GetDayOfWeekIndexInternal ( string day ) : int
GetDayOfWeekLocalized ( string odataDayOfWeek ) : string
ToDateOnlyString ( DateTimeOffset date ) : string
ToDateOnlyString ( string dateString ) : string

Method Details

BuildRecurrentDate() public static method

public static BuildRecurrentDate ( Meeting recurrence ) : string
recurrence Meeting
return string

DateToApiString() public static method

public static DateToApiString ( this dateTime ) : string
dateTime this
return string

DateToFullApiUtcString() public static method

public static DateToFullApiUtcString ( this dateTime ) : string
dateTime this
return string

GetDaysOfWeek() public static method

public static GetDaysOfWeek ( ) : IEnumerable
return IEnumerable

ToLocalTime() public static method

public static ToLocalTime ( this dateTime ) : System.DateTime
dateTime this
return System.DateTime

ToUtcTime() public static method

public static ToUtcTime ( this localDateTime ) : System.DateTime
localDateTime this
return System.DateTime