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