Interface ITimeZone
Public interface to define a TimeZone object
Assembly: PnP.Core.dll
Syntax
public interface ITimeZone : IDataModel<ITimeZone>, IDataModelParent, IDataModelWithContext, ISupportModules<ITimeZone>, IDataModelGet<ITimeZone>, IDataModelLoad<ITimeZone>, IQueryableDataModel
Properties
A special property used to add an asterisk to a $select statement
Declaration
Property Value
Bias (additional minutes to get to UTC time) for this time zone
Declaration
Property Value
Bias (additional minutes to get to UTC time) for this time zone when in daylight saving
Declaration
int DaylightBias { get; }
Property Value
Declaration
string Description { get; }
Property Value
Declaration
Property Value
Bias (additional minutes to get to UTC time) for this time zone when not in daylight saving
Declaration
int StandardBias { get; }
Property Value
Methods
Returns the current SharePoint timezone information as a Windows TimeZoneInfo object
Declaration
TimeZoneInfo GetTimeZoneInfo()
Returns
Converts the specified DateTime value from local time to Coordinated Universal Time (UTC).
Declaration
DateTime LocalTimeToUtc(DateTime dateTime)
Parameters
DateTime
dateTime
A object that represents the local date and time value to convert.
|
Returns
DateTime
A object that contains the date converted to UTC.
|
Converts the specified DateTime value from Coordinated Universal Time (UTC) to local time.
Declaration
DateTime UtcToLocalTime(DateTime dateTime)
Parameters
DateTime
dateTime
A object that represents the UTC date and time value to convert.
|
Returns
DateTime
A structure that contains the date and time converted to their local values.
|
Extension Methods