/// <summary> /// Gets the current UTC time of day only. /// </summary> /// <returns> /// TimeSpan object that is the current UTC time of day. /// </returns> public static TimeSpan GetCurrentUtcTimeOfDay(this IClock clock) { Contract.Requires(clock != null); var currentUtcDateTime = clock.GetCurrentUtcDateTime(); var currentUtcTimeOfDay = currentUtcDateTime.TimeOfDay; return(currentUtcTimeOfDay); }