Table of Contents

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

object

Bias

Bias (additional minutes to get to UTC time) for this time zone

int Bias { get; }

Property Value

int

DaylightBias

Bias (additional minutes to get to UTC time) for this time zone when in daylight saving

int DaylightBias { get; }

Property Value

int

Description

Time zone description

string Description { get; }

Property Value

string

Id

Id of the time zone

int Id { get; }

Property Value

int

StandardBias

Bias (additional minutes to get to UTC time) for this time zone when not in daylight saving

int StandardBias { get; }

Property Value

int

Methods

GetTimeZoneInfo()

Returns the current SharePoint timezone information as a Windows TimeZoneInfo object

TimeZoneInfo GetTimeZoneInfo()

Returns

TimeZoneInfo

LocalTimeToUtc(DateTime)

Converts the specified DateTime value from local time to Coordinated Universal Time (UTC).

DateTime LocalTimeToUtc(DateTime dateTime)

Parameters

dateTime DateTime

A DateTime object that represents the local date and time value to convert.

Returns

DateTime

A DateTime object that contains the date converted to UTC.

UtcToLocalTime(DateTime)

Converts the specified DateTime value from Coordinated Universal Time (UTC) to local time.

DateTime UtcToLocalTime(DateTime dateTime)

Parameters

dateTime DateTime

A DateTime object that represents the UTC date and time value to convert.

Returns

DateTime

A DateTime structure that contains the date and time converted to their local values.