Interpolate times between two datetimes quickly for a given interval.

Say I have been given 12/25/1995 12:00:00 and 12/25/2005 12:00:00 and I want every datetime every 5 seconds between these two dates. Is there a way to do this quickly (say in less than half a second)? I have been doing a normal foreach loop and adding the interval in seconds until it is equal to the end time, but that obviously takes way too long.

submitted by /u/Quiet_Desperation_
[link] [comments]

Leave a Reply