Skip to content

Commit

Permalink
Finish converting DateTimeOffsetRange to use DateTimeOffset everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Mar 30, 2021
1 parent c0bc852 commit 8af807d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ public DateTimeOffsetRange NewDuration(TimeSpan newDuration)
return new DateTimeOffsetRange(this.Start, newDuration);
}

public DateTimeOffsetRange NewEnd(DateTime newEnd)
public DateTimeOffsetRange NewEnd(DateTimeOffset newEnd)
{
return new DateTimeOffsetRange(this.Start, newEnd);
}

public DateTimeOffsetRange NewStart(DateTime newStart)
public DateTimeOffsetRange NewStart(DateTimeOffset newStart)
{
return new DateTimeOffsetRange(newStart, this.End);
}

public static DateTimeOffsetRange CreateOneDayRange(DateTime day)
public static DateTimeOffsetRange CreateOneDayRange(DateTimeOffset day)
{
return new DateTimeOffsetRange(day, day.AddDays(1));
}

public static DateTimeOffsetRange CreateOneWeekRange(DateTime startDay)
public static DateTimeOffsetRange CreateOneWeekRange(DateTimeOffset startDay)
{
return new DateTimeOffsetRange(startDay, startDay.AddDays(7));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<Summary>Includes common abstractions and base types.</Summary>
<RepositoryUrl>https://github.com/ardalis/pluralsight-ddd-fundamentals</RepositoryUrl>
<PackageTags>aspnet asp.net aspnetcore asp.net core ddd dddesign value object entity aggregate domain event pluralsight</PackageTags>
<PackageReleaseNotes>Adding DateTimeRangeOffset to BaseDomainEvent.</PackageReleaseNotes>
<Version>1.2.1</Version>
<PackageReleaseNotes>Finish convertin DateTimeOffsetRange to use DateTimeOffset everywhere.</PackageReleaseNotes>
<Version>1.2.2</Version>
<AssemblyName>PluralsightDdd.SharedKernel</AssemblyName>
<PackageIconUrl>https://user-images.githubusercontent.com/782127/33497760-facf6550-d69c-11e7-94e4-b3856da259a9.png</PackageIconUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand Down

0 comments on commit 8af807d

Please sign in to comment.