views:

27

answers:

1

Assuming I use Rx, How can I create an IObservable which will fire an event every 5 seconds how can I make the observable start on a specific date ? How can I make it fire its events on a round date (every midnight ?)

+1  A: 
// Do you really care if it's up to five seconds later than midnight?
Observable.Interval(TimeSpan.FromSeconds(5))
          .Where(x => DateTime.Now > new DateTime(1,2,2010));
Paul Betts