init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
16
Kreta.BusinessLogic/Extensions/TimeSpanExtensions.cs
Normal file
16
Kreta.BusinessLogic/Extensions/TimeSpanExtensions.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Kreta.BusinessLogic.Extensions
|
||||
{
|
||||
public static class TimeSpanExtensions
|
||||
{
|
||||
public static TimeSpan RoundDownToNearestTargetMinute(this TimeSpan timeSpan, int targetMinute)
|
||||
{
|
||||
return timeSpan.Subtract(new TimeSpan(0, timeSpan.Minutes % targetMinute, 0));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue