From 905bad1ffa64c46fa31ae739c8752c4c75b8d4dc Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 7 Mar 2021 18:02:32 +0000 Subject: [PATCH] (#14) Remove whitespace on line spacing --- X10D/src/DateTimeExtensions/DateTimeExtensions.cs | 7 ++++--- X10D/src/DateTimeExtensions/DateTimeOffsetExtensions.cs | 6 +++--- X10D/src/StringExtensions.cs | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/X10D/src/DateTimeExtensions/DateTimeExtensions.cs b/X10D/src/DateTimeExtensions/DateTimeExtensions.cs index 0c26c34..5cbeee4 100644 --- a/X10D/src/DateTimeExtensions/DateTimeExtensions.cs +++ b/X10D/src/DateTimeExtensions/DateTimeExtensions.cs @@ -18,7 +18,7 @@ namespace X10D.DateTimeExtensions { return ((DateTimeOffset)value).Age(asOf); } - + /// /// A representing the first occurence of . public static DateTime First(this DateTime value, DayOfWeek dayOfWeek) @@ -32,20 +32,21 @@ namespace X10D.DateTimeExtensions { return ((DateTimeOffset)value).FirstDayOfMonth().DateTime; } - + /// /// A representing the final occurence of . public static DateTime Last(this DateTime value, DayOfWeek dayOfWeek) { return ((DateTimeOffset)value).Last(dayOfWeek).DateTime; } + /// /// A representing the last day of the current month. public static DateTime LastDayOfMonth(this DateTime value) { return ((DateTimeOffset)value).LastDayOfMonth().DateTime; } - + /// /// A representing the next occurence of . public static DateTime Next(this DateTime value, DayOfWeek dayOfWeek) diff --git a/X10D/src/DateTimeExtensions/DateTimeOffsetExtensions.cs b/X10D/src/DateTimeExtensions/DateTimeOffsetExtensions.cs index 92e9f32..665a983 100644 --- a/X10D/src/DateTimeExtensions/DateTimeOffsetExtensions.cs +++ b/X10D/src/DateTimeExtensions/DateTimeOffsetExtensions.cs @@ -30,7 +30,7 @@ namespace X10D.DateTimeExtensions { return (int)(((asOf.Date - TimeSpan.FromDays(1) - value.Date).TotalDays + 1) / 365.2425); } - + /// /// Gets a date representing the first occurence of a specified day of the week in the current month. /// @@ -58,7 +58,7 @@ namespace X10D.DateTimeExtensions { return value.AddDays(1 - value.Day); } - + /// /// Gets a date representing the final occurence of a specified day of the week in the current month. /// @@ -86,7 +86,7 @@ namespace X10D.DateTimeExtensions var daysInMonth = DateTime.DaysInMonth(value.Year, value.Month); return new DateTime(value.Year, value.Month, daysInMonth); } - + /// /// Gets a date representing the next occurence of a specified day of the week in the current month. /// diff --git a/X10D/src/StringExtensions.cs b/X10D/src/StringExtensions.cs index 411377e..31c6cda 100644 --- a/X10D/src/StringExtensions.cs +++ b/X10D/src/StringExtensions.cs @@ -366,7 +366,7 @@ namespace X10D } } } - + /// /// Parses a shorthand time span string (e.g. 3w 2d 1.5h) and converts it to an instance of /// .