Esempio n. 1
0
 public static IEnumerable <(DateTime, DateTime)> SplitTupleByMinutes(DateTime start, DateTime end, int minutes) => SplitTuple(start, end, TimeSpan.FromMinutes(minutes));
Esempio n. 2
0
 PartOfDay.Night => TimeSpan.FromHours(evening).Add(TimeSpan.FromMinutes(random.Next((int)(TimeSpan.FromHours(night) - TimeSpan.FromHours(evening)).TotalMinutes))),
Esempio n. 3
0
 PartOfDay.Evening => TimeSpan.FromHours(afternoon).Add(TimeSpan.FromMinutes(random.Next((int)(TimeSpan.FromHours(evening) - TimeSpan.FromHours(afternoon)).TotalMinutes))),
Esempio n. 4
0
 PartOfDay.Afternoon => TimeSpan.FromHours(noon).Add(TimeSpan.FromMinutes(random.Next((int)(TimeSpan.FromHours(afternoon) - TimeSpan.FromHours(noon)).TotalMinutes))),
Esempio n. 5
0
 PartOfDay.Noon => TimeSpan.FromHours(morning).Add(TimeSpan.FromMinutes(random.Next((int)(TimeSpan.FromHours(noon) - TimeSpan.FromHours(morning)).TotalMinutes))),
Esempio n. 6
0
 PartOfDay.Morning => TimeSpan.FromHours(0).Add(TimeSpan.FromMinutes(random.Next((int)TimeSpan.FromHours(morning).TotalMinutes))),