Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.GetTimeSpanFromTimeZone method

Retrieves a TimeSpan object that represents the difference in time between Coordinated Universal Time (UTC) and the time zone that is local to the SharePoint Web site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public static TimeSpan GetTimeSpanFromTimeZone(
	SPTimeZone timeZone
)

Parameters

timeZone
Type: Microsoft.SharePoint.SPTimeZone

An SPTimeZone object that represents the time zone setting of the SharePoint Web site.

Return value

Type: System.TimeSpan
A TimeSpan object that represents the current difference in time between UTC and local time, including any adjustment necessary for Daylight Savings Time, if it is in effect.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.