Share via


Schedule.AdjustUtcStartTimeForDST Method

This method will adjust the start time for DST. We start with when the schedule was saved in UTC then we go down 2 paths: First path - is add the days since saved to the utc last modified (no DST taken into account) and then we localize. Second path - localize the utc last modified then add the days since saved (this will now adjust for DST). The second path - the the first path gives us any DST change and we add this to our scheduled time.

Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)

Syntax

'Declaration
Public Sub AdjustUtcStartTimeForDST ( _
    now As DateTime _
)
public void AdjustUtcStartTimeForDST(
    DateTime now
)
public:
void AdjustUtcStartTimeForDST(
    DateTime now
)
member AdjustUtcStartTimeForDST : 
        now:DateTime -> unit
public function AdjustUtcStartTimeForDST(
    now : DateTime
)

Parameters

.NET Framework Security

See Also

Reference

Schedule Class

Microsoft.TeamFoundation.Build.Server Namespace