Class TimeExtensions
- Namespace
- AetherUtils.Core.Extensions
- Assembly
- AetherUtils.Core.dll
Provides extension methods for manipulating various time related objects.
[UsedImplicitly]
public static class TimeExtensions
- Inheritance
-
TimeExtensions
- Inherited Members
Methods
EndOfMonth(DateTime)
[UsedImplicitly]
public static DateTime EndOfMonth(this DateTime date)
Parameters
Returns
Exceptions
- ArgumentNullException
- If the
datewasnull.
StartOfMonth(DateTime)
[UsedImplicitly]
public static DateTime StartOfMonth(this DateTime date)
Parameters
Returns
StartOfWeek(DateTime)
[UsedImplicitly]
public static DateTime StartOfWeek(this DateTime date)
Parameters
Returns
TimeSpanToString(TimeSpan)
Get a string representing the TimeSpan in the form of:
w day(s), x hour(s), y minute(s), z second(s)
[UsedImplicitly]
public static string TimeSpanToString(this TimeSpan timeSpan)
Parameters
Returns
Exceptions
- ArgumentNullException
- If
timeSpanwasnull.