// -------------------------------------------------------------- static void Main(string[] args) { var schedule = new Repeatedly (new DateTime(2011, 3, 6), new TimeSpan(7, 0, 0, 0)); var next = GetNextOccurrence(schedule); Console.WriteLine(next); }