mirror of https://github.com/oliverbooth/X10D
(#14) Remove whitespace on line spacing
This commit is contained in:
parent
937d701d14
commit
905bad1ffa
|
@ -18,7 +18,7 @@ namespace X10D.DateTimeExtensions
|
|||
{
|
||||
return ((DateTimeOffset)value).Age(asOf);
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc cref="DateTimeOffsetExtensions.First(DateTimeOffset, DayOfWeek)" />
|
||||
/// <returns>A <see cref="DateTime" /> representing the first occurence of <paramref name="dayOfWeek" />.</returns>
|
||||
public static DateTime First(this DateTime value, DayOfWeek dayOfWeek)
|
||||
|
@ -32,20 +32,21 @@ namespace X10D.DateTimeExtensions
|
|||
{
|
||||
return ((DateTimeOffset)value).FirstDayOfMonth().DateTime;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc cref="DateTimeOffsetExtensions.Last(DateTimeOffset, DayOfWeek)" />
|
||||
/// <returns>A <see cref="DateTimeOffset" /> representing the final occurence of <paramref name="dayOfWeek" />.</returns>
|
||||
public static DateTime Last(this DateTime value, DayOfWeek dayOfWeek)
|
||||
{
|
||||
return ((DateTimeOffset)value).Last(dayOfWeek).DateTime;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="DateTimeOffsetExtensions.LastDayOfMonth(DateTimeOffset)" />
|
||||
/// <returns>A <see cref="DateTimeOffset" /> representing the last day of the current month.</returns>
|
||||
public static DateTime LastDayOfMonth(this DateTime value)
|
||||
{
|
||||
return ((DateTimeOffset)value).LastDayOfMonth().DateTime;
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc cref="DateTimeOffsetExtensions.Next(DateTimeOffset, DayOfWeek)" />
|
||||
/// <returns>A <see cref="DateTimeOffset" /> representing the next occurence of <paramref name="dayOfWeek" />.</returns>
|
||||
public static DateTime Next(this DateTime value, DayOfWeek dayOfWeek)
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace X10D.DateTimeExtensions
|
|||
{
|
||||
return (int)(((asOf.Date - TimeSpan.FromDays(1) - value.Date).TotalDays + 1) / 365.2425);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a date representing the first occurence of a specified day of the week in the current month.
|
||||
/// </summary>
|
||||
|
@ -58,7 +58,7 @@ namespace X10D.DateTimeExtensions
|
|||
{
|
||||
return value.AddDays(1 - value.Day);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a date representing the final occurence of a specified day of the week in the current month.
|
||||
/// </summary>
|
||||
|
@ -86,7 +86,7 @@ namespace X10D.DateTimeExtensions
|
|||
var daysInMonth = DateTime.DaysInMonth(value.Year, value.Month);
|
||||
return new DateTime(value.Year, value.Month, daysInMonth);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a date representing the next occurence of a specified day of the week in the current month.
|
||||
/// </summary>
|
||||
|
|
|
@ -366,7 +366,7 @@ namespace X10D
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Parses a shorthand time span string (e.g. 3w 2d 1.5h) and converts it to an instance of
|
||||
/// <see cref="TimeSpan" />.
|
||||
|
|
Loading…
Reference in New Issue