Esempio n. 1
0
        public object SelectData()
        {
            TimeSpan timeSpan = Upper.Subtract(Lower);
            DateTime result   = Lower.AddDays(ImSoRandom.Next(0, timeSpan.Days + 1));

            result = result.AddHours(GetRandomTime(TimeComponent.hours));
            result = result.AddMinutes(GetRandomTime(TimeComponent.minutes));
            result = result.AddSeconds(GetRandomTime(TimeComponent.seconds));
            result = result.AddMilliseconds(GetRandomTime(TimeComponent.milliseconds));
            return(result);
        }