Skip to content

Commit

Permalink
adds skip packaging option
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyLife2 committed Jan 26, 2024
1 parent f913a51 commit 0983846
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/DateTimeExtensions/WorkingDaysExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#region License

//
// Copyright (c) 2011-2012, João Matos Silva <[email protected]>
// Copyright (c) 2011-2012, Jo�o Matos Silva <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -80,7 +80,7 @@ public static DateTime AddWorkingDays(this DateTime day, int workingDays)
/// <param name="to">The end day.</param>
/// <param name="workingDayCultureInfo">The culture of working days to be used in the calculation. See <seealso cref="WorkingDayCultureInfo"/> for more information.</param>
/// <returns>the number of Workingdays in the range <paramref name="from"/> / <paramref name="to"/></returns>
public static int GetWorkingDays(this DateTime from, DateTime to, WorkingDayCultureInfo workingDayCultureInfo)
public static int GetWorkingDays(this DateTime from, DateTime to, IWorkingDayCultureInfo workingDayCultureInfo)
{
var innerFrom = from < to ? from : to;
var innerTo = from < to ? to : from;
Expand All @@ -100,7 +100,9 @@ public static int GetWorkingDays(this DateTime from, DateTime to, WorkingDayCult
/// <returns>the number of Workingdays in the range <paramref name="from"/> / <paramref name="to"/></returns>
public static int GetWorkingDays(this DateTime from, DateTime to)
{
return GetWorkingDays(from, to, new WorkingDayCultureInfo());
var workingDayCultureInfo = new WorkingDayCultureInfo();

return GetWorkingDays(from, to, workingDayCultureInfo);
}

/// <summary>
Expand Down

0 comments on commit 0983846

Please sign in to comment.