How to get all minutes in a day?
c#, datetime, list
Solution
var startTime = DateTime.Now.Date;
var minsOfDay =
Enumerable.Range(0, 1440).Select(i => startTime.AddMinutes(i)).ToList();
Problem
Is there a way to fill a List by all of minutes of a day? So, it must has 1440 (60 * 24) minutes as DateTime (14:37, 14:38, 14:39 etc..) object. Thanks in advance.