mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 12:37:13 +00:00
feat: Added TimeSpan extension methods for cycling hours and minutes without modifying the day
This commit is contained in:
parent
45ee3e70b0
commit
9a6f197aa0
4 changed files with 88 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ namespace ICD.Common.Utils.Tests
|
|||
[TestCase(0, 12)]
|
||||
[TestCase(12, 12)]
|
||||
[TestCase(23, 11)]
|
||||
public void Get12Hour(int hour, int expected)
|
||||
public void To12HourTest(int hour, int expected)
|
||||
{
|
||||
Assert.AreEqual(expected, DateTimeUtils.To12Hour(hour));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue