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.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
- Type: Microsoft.SharePoint.SPTimeZone
An SPTimeZone object that represents the time zone setting of the SharePoint Web site.
Return ValueType: 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.