/// <summary> /// Get the time of day from a given datetime. /// </summary> /// <param name="dateTime">The datetime from which to get the time of day.</param> /// <returns>The time of day as a ScheduleTime.</returns> public static ScheduleTime FromDateTime(DateTime dateTime) { ScheduleTime result = new ScheduleTime(); result.Ticks = dateTime.TimeOfDay.Ticks; return(result); }
/// <summary> /// Get the time of day from a given datetime. /// </summary> /// <param name="dateTime">The datetime from which to get the time of day.</param> /// <returns>The time of day as a ScheduleTime.</returns> public static ScheduleTime FromDateTime(DateTime dateTime) { ScheduleTime result = new ScheduleTime(); result.Ticks = dateTime.TimeOfDay.Ticks; return result; }