C# 클래스 SIPSorcery.Entities.TimeZoneHelper

파일 보기 프로젝트 열기: sipsorcery/sipsorcery

공개 메소드들

메소드 설명
ApplyOffset ( string dateTimeOffsetStr, int offset ) : System.DateTime

Applies a minutes offset to a date time offset.

GetTimeZonesUTCOffsetMinutes ( string timezoneStr ) : int

Returns the offset minutes from UTC time for a timezone. This method is typically used to convert times that are stored in the database as UTC time to a user's local time.

메소드 상세

ApplyOffset() 공개 정적인 메소드

Applies a minutes offset to a date time offset.
public static ApplyOffset ( string dateTimeOffsetStr, int offset ) : System.DateTime
dateTimeOffsetStr string Must be a valid DateTimeOffset. Typically this calue should be coming from the database.
offset int The offset in minutes to apply to the time string.
리턴 System.DateTime

GetTimeZonesUTCOffsetMinutes() 공개 정적인 메소드

Returns the offset minutes from UTC time for a timezone. This method is typically used to convert times that are stored in the database as UTC time to a user's local time.
public static GetTimeZonesUTCOffsetMinutes ( string timezoneStr ) : int
timezoneStr string The timezone to get the offset from UTC for.
리턴 int