1
2
3
4
5
6
DateTime localTime = System.DateTime.Now;
DateTime utcTime = System.DateTime.UtcNow;

TimeSpan timeDifference = localTime - utcTime;
 
int hourDifference = timeDifference.Hours;