Masuit.Tools.Net 2.3.1.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Masuit.Tools.Net --version 2.3.1.3                
NuGet\Install-Package Masuit.Tools.Net -Version 2.3.1.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Masuit.Tools.Net" Version="2.3.1.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Masuit.Tools.Net --version 2.3.1.3                
#r "nuget: Masuit.Tools.Net, 2.3.1.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Masuit.Tools.Net as a Cake Addin
#addin nuget:?package=Masuit.Tools.Net&version=2.3.1.3

// Install Masuit.Tools.Net as a Cake Tool
#tool nuget:?package=Masuit.Tools.Net&version=2.3.1.3                

增加时间段计算工具

var range = new DateTimeRange(DateTime.Parse("2020-8-3"), DateTime.Parse("2020-8-5"));
range.Union(DateTime.Parse("2020-8-4"), DateTime.Parse("2020-8-6")); //连接两个时间段,结果:2020-8-3~2020-8-6
range.In(DateTime.Parse("2020-8-3"), DateTime.Parse("2020-8-6"));//判断是否在某个时间段内,true
var (intersected,range2) = range.Intersect(DateTime.Parse("2020-8-4"), DateTime.Parse("2020-8-6"));//两个时间段是否相交,(true,2020-8-3~2020-8-4)
range.Contains(DateTime.Parse("2020-8-3"), DateTime.Parse("2020-8-4"));//判断是否包含某个时间段,true
Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.7.4 29 12/27/2024
2024.7.3 36 12/26/2024
2024.7.2 86 12/19/2024
2024.7.1 120 12/13/2024
2024.7.0 92 12/12/2024
2024.6.1 84 12/9/2024
2024.6.0 143 11/13/2024
2024.5.9 123 11/4/2024
2024.5.8 168 9/27/2024
2024.5.7 86 9/27/2024
2024.5.6 251 8/15/2024
2024.5.5 124 8/15/2024
2024.5.4 121 8/15/2024
2024.5.3 117 8/14/2024
2024.5.2 124 8/10/2024
2024.5.1 122 8/9/2024
2024.5.0 112 8/9/2024
2024.4.6-beta2 102 8/9/2024
2024.4.6-beta 81 8/8/2024
2024.4.5 205 7/26/2024
2024.4.4 98 7/25/2024
2024.4.2 265 7/6/2024
2024.4.1 157 7/2/2024
2024.4.0 145 7/1/2024
2024.3.4 449 5/11/2024
2024.3.3 135 5/10/2024
2024.3.2 128 5/9/2024
2024.3.1 120 5/9/2024
2024.3.0 126 5/9/2024
2024.2.0 174 4/30/2024
2024.1.0 197 4/12/2024
2.6.9.9 251 4/2/2024
2.6.9.8 155 3/22/2024
2.6.9.7 126 3/21/2024
2.6.9.6 121 3/21/2024
2.6.9.5 135 3/20/2024
2.6.9.4 139 3/11/2024
2.6.9.3 156 3/7/2024
2.6.9.2 169 2/22/2024
2.6.9.1 195 2/3/2024
2.6.9 157 1/30/2024
2.6.8.9 209 1/19/2024
2.6.8.8 188 1/11/2024
2.6.8.4 276 12/22/2023
2.6.8.3 175 12/15/2023
2.6.8.2 221 12/1/2023
2.6.8.1 225 11/22/2023
2.6.8 162 11/17/2023
2.6.7.1 399 9/20/2023
2.6.6.8 249 9/7/2023
2.6.6.6 159 9/6/2023
2.6.6.3 241 8/31/2023
2.6.6 314 8/15/2023
2.6.5 164 8/14/2023
2.6.4.1 167 8/11/2023
2.6.3.1 287 7/20/2023
2.6.2.10 223 7/14/2023
2.6.2 528 5/24/2023
2.6.1 298 5/6/2023
2.6.0.2 445 4/19/2023
2.6.0.1 200 4/18/2023
2.6.0 245 4/18/2023
2.5.9.8 243 4/14/2023
2.5.9.7 236 4/13/2023
2.5.9.6 223 4/11/2023
2.5.9.5 210 4/8/2023
2.5.9.4 385 3/22/2023
2.5.9.3 360 3/4/2023
2.5.9.2 459 2/4/2023
2.5.7.5 834 11/10/2022
2.5.7.2 492 11/7/2022
2.5.7.1 421 11/3/2022
2.5.7 414 11/3/2022
2.5.6.2 523 10/24/2022
2.5.6 510 10/18/2022
2.5.5.1 644 10/6/2022
2.5.5 688 9/17/2022
2.5.4.3 574 9/6/2022
2.5.4.2 496 9/3/2022
2.5.4.1 457 9/3/2022
2.5.4 491 8/31/2022
2.5.3 496 8/25/2022
2.5.3-beta 163 8/4/2022
2.5.2 787 7/4/2022
2.5.1 548 7/2/2022
2.5.0.2 496 7/1/2022
2.5.0.1 488 7/1/2022
2.5.0 528 6/28/2022
2.4.9.4 557 6/21/2022
2.4.9.3 561 6/14/2022
2.4.9.2 559 6/7/2022
2.4.9.1 503 6/7/2022
2.4.9 524 6/7/2022
2.4.8.10 570 5/26/2022
2.4.8.8 483 5/25/2022
2.4.8.7 486 5/24/2022
2.4.8.6 634 4/25/2022
2.4.8.5 533 4/18/2022
2.4.8.4 523 4/15/2022
2.4.8.3 556 4/1/2022
2.4.8.2 558 3/23/2022
2.4.8.1 502 3/23/2022
2.4.8 529 3/23/2022
2.4.7.9 610 3/17/2022
2.4.7.8 597 3/8/2022
2.4.7.7 496 3/7/2022
2.4.7.6 1,125 3/1/2022
2.4.7.5 647 2/9/2022
2.4.7.4 526 1/25/2022
2.4.7.3 549 1/18/2022
2.4.7.2 532 1/17/2022
2.4.7.1 579 1/13/2022
2.4.7.1-beta 180 1/13/2022
2.4.7 537 1/12/2022
2.4.6.5 367 1/6/2022
2.4.6.4 388 1/4/2022
2.4.6.3 360 1/4/2022
2.4.6.2 337 1/4/2022
2.4.6.1 363 12/29/2021
2.4.6 336 12/29/2021
2.4.5.5 464 12/8/2021
2.4.5.2 471 11/9/2021
2.4.5.1 490 11/4/2021
2.4.4.8 565 10/16/2021
2.4.4.7 476 9/29/2021
2.4.4.6 489 9/24/2021
2.4.4.4 449 9/17/2021
2.4.4.3 442 9/17/2021
2.4.4.2 437 9/17/2021
2.4.4.1 457 9/7/2021
2.4.4 439 9/6/2021
2.4.3.9 556 8/10/2021
2.4.3.8 482 8/3/2021
2.4.3.7 481 7/8/2021
2.4.3.6 584 6/25/2021
2.4.3.5 579 5/18/2021
2.4.3.4 540 5/6/2021
2.4.3.3 650 4/17/2021
2.4.3.2 565 4/2/2021
2.4.3.1 490 4/1/2021
2.4.3 531 3/26/2021
2.4.2.10 607 3/26/2021
2.4.2.9 661 3/23/2021
2.4.2.8 525 3/19/2021
2.4.2.7 703 3/11/2021
2.4.2.6 524 3/10/2021
2.4.2.5 499 3/6/2021
2.4.2.4 521 2/26/2021
2.4.2.3 516 2/19/2021
2.4.2.1 663 1/26/2021
2.4.2 491 1/23/2021
2.4.1.5 545 1/12/2021
2.4.1.4 495 1/11/2021
2.4.1.3 588 12/25/2020
2.4.1.2 571 12/18/2020
2.4.1.1 588 12/11/2020
2.4.1 623 11/17/2020
2.3.2.6 570 11/10/2020
2.3.2.2 554 11/3/2020
2.3.2.1 660 11/3/2020
2.3.2 576 10/28/2020
2.3.1.10 661 9/28/2020
2.3.1.9 643 9/27/2020
2.3.1.8 559 9/22/2020
2.3.1.7 565 9/20/2020
2.3.1.5 620 9/11/2020
2.3.1.4 768 9/3/2020
2.3.1.3 568 9/3/2020
2.3.1.1 649 8/19/2020
2.2.9.5 991 8/11/2020
2.2.9.4 708 8/11/2020
2.2.9.3 853 8/6/2020
2.2.9.2 818 8/1/2020
2.2.9.1 759 7/14/2020
2.2.9 629 7/13/2020
2.2.8.9 884 5/2/2020
2.2.8.8 729 4/15/2020
2.2.8.7 688 4/15/2020
2.2.8.5 945 3/22/2020

如有问题请联系作者QQ:3444764617,或者到项目的github反馈问题,详细的API文档在github上:https://github.com/ldqk/Masuit.Tools