Microsoft.Bcl.TimeProvider 11.0.0
About
Microsoft.Bcl.TimeProvider provides time abstraction support for apps targeting .NET 7 and earlier, as well as those intended for the .NET Framework. For apps targeting .NET 8 and newer versions, referencing this package is unnecessary, as the types it contains are already included in the .NET 8 and higher platform versions.
Key Features
- Provides a common abstraction for time-related operations.
How to Use
using System;
// A class that uses TimeProvider to get the current time in Utc coordinates
public class UtcClock
{
private readonly TimeProvider _timeProvider;
// Constructor that takes a TimeProvider as a dependency
public Clock(TimeProvider timeProvider)
{
_timeProvider = timeProvider;
}
// A method that returns the current time as a string
public string GetTime()
{
return _timeProvider.GetLocalNow().ToString("HH:mm:ss");
}
}
// A class that inherits from TimeProvider and overrides the GetLocalNow method
public class UtcTimeProvider : TimeProvider
{
// Override the GetLocalNow method to always return UTC time
public override DateTimeOffset GetLocalNow()
{
return TimeProvider.System.GetUtcNow();
}
}
Main Types
The main types provided by this library are:
TimeProviderTimeProviderTaskExtensions
Additional Documentation
Feedback & Contributing
Microsoft.Bcl.TimeProvider is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Bcl.TimeProvider.
| Packages | Downloads |
|---|---|
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/31d685b2d9a86ca1243014d175a3da813f78e428
|
19 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/ada5ad97d2114250a05550cb28cc18b9cf9f8993
|
16 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/da7e9894ce22ef8cc02e5acc56e95a6f8cf8f644
|
15 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/4ae1269bff83362236d0f3bd4c9302e6a1e9341c
|
14 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/8899cb30120d41413065f1b1465cdabefe0a1f9c
|
14 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/47576478939fdd59b4400ad135f47938af486ab3
|
14 |
|
Microsoft.IdentityModel.Tokens
Includes types that provide support for SecurityTokens, Cryptographic operations: Signing, Verifying Signatures, Encryption.
|
14 |
|
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS).
Commonly Used Types:
Microsoft.Data.SqlClient.SqlConnection
Microsoft.Data.SqlClient.SqlException
Microsoft.Data.SqlClient.SqlParameter
Microsoft.Data.SqlClient.SqlDataReader
Microsoft.Data.SqlClient.SqlCommand
Microsoft.Data.SqlClient.SqlTransaction
Microsoft.Data.SqlClient.SqlParameterCollection
Microsoft.Data.SqlClient.SqlClientFactory
When using NuGet 3.x this package requires at least version 3.4.
|
14 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/f6b3a5da75eb405046889a5447ec9b14cc29d285
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/af22effae4069a5dfb9b0735859de48820104f5b
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/d5dc8a13cc618b9cbdc1e5744b4806c594d49553
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/cea5fa610dba4e0c024727f4c528a66018b820a3
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/8af96e042134fb3b2f21df26dd0f32ea1c00dd37
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/280c613963a1768b810d09f32c998fe4490855e9
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/159901324421e89ca7612465fc8c138609837f3d
|
13 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/b96167fbfe8bd45d94e4dcda42c7d09eb5745459
|
12 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/379bfc7b2559e7cc9f42f997a497b2f2dd8e12d2
|
12 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/954f61dd38b33caa2b736c73530bd5a294174437
|
12 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/c2a442982e736e17ae6bcadbfd8ccba278ee1be6
|
12 |
|
Microsoft.AspNetCore.SignalR.Client.Core
Client for ASP.NET Core SignalR
This package was built from the source code at https://github.com/dotnet/aspnetcore/tree/25ef4aa38b77974263cb10f6e9cbd10135f17b59
|
12 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET 10.0
- No dependencies.
.NET Framework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0)
- System.ValueTuple (>= 4.6.2)
.NET Standard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 11.0.0 | 1 | 11/20/2026 |
| 11.0.0-rc.3.26522.148 | 5 | 10/30/2026 |
| 11.0.0-rc.2.26504.105 | 6 | 10/19/2026 |
| 11.0.0-rc.1.26425.128 | 8 | 09/23/2026 |
| 11.0.0-preview.7.26381.103 | 8 | 09/08/2026 |
| 11.0.0-preview.6.26359.118 | 6 | 07/26/2026 |
| 11.0.0-preview.5.26302.115 | 9 | 07/03/2026 |
| 11.0.0-preview.4.26230.115 | 10 | 05/30/2026 |
| 11.0.0-preview.3.26207.106 | 9 | 05/30/2026 |
| 11.0.0-preview.2.26159.112 | 9 | 03/14/2026 |
| 11.0.0-preview.1.26104.118 | 11 | 02/28/2026 |
| 10.0.15 | 0 | 11/10/2026 |
| 10.0.14 | 6 | 10/29/2026 |
| 10.0.13 | 6 | 10/20/2026 |
| 10.0.12 | 7 | 09/21/2026 |
| 10.0.11 | 7 | 09/08/2026 |
| 10.0.10 | 9 | 07/26/2026 |
| 10.0.9 | 8 | 07/04/2026 |
| 10.0.8 | 6 | 05/30/2026 |
| 10.0.7 | 8 | 05/30/2026 |
| 10.0.6 | 7 | 05/30/2026 |
| 10.0.5 | 10 | 03/15/2026 |
| 10.0.4 | 7 | 03/14/2026 |
| 10.0.3 | 8 | 03/01/2026 |
| 10.0.2 | 1 | 01/28/2026 |
| 10.0.1 | 1 | 12/10/2025 |
| 10.0.0 | 0 | 12/11/2025 |
| 10.0.0-rc.2.25502.107 | 2 | 12/10/2025 |
| 10.0.0-rc.1.25451.107 | 1 | 01/04/2026 |
| 10.0.0-preview.7.25380.108 | 10 | 03/01/2026 |
| 10.0.0-preview.6.25358.103 | 5 | 04/03/2026 |
| 10.0.0-preview.5.25277.114 | 5 | 03/04/2026 |
| 10.0.0-preview.4.25258.110 | 9 | 03/02/2026 |
| 10.0.0-preview.3.25171.5 | 7 | 03/12/2026 |
| 10.0.0-preview.2.25163.2 | 7 | 03/03/2026 |
| 10.0.0-preview.1.25080.5 | 9 | 02/09/2026 |
| 9.0.23 | 1 | 11/20/2026 |
| 9.0.22 | 6 | 10/30/2026 |
| 9.0.21 | 7 | 10/22/2026 |
| 9.0.20 | 6 | 09/22/2026 |
| 9.0.19 | 7 | 09/08/2026 |
| 9.0.18 | 9 | 07/26/2026 |
| 9.0.17 | 10 | 07/02/2026 |
| 9.0.16 | 10 | 05/30/2026 |
| 9.0.15 | 8 | 05/30/2026 |
| 9.0.14 | 8 | 03/14/2026 |
| 9.0.13 | 7 | 03/02/2026 |
| 9.0.12 | 3 | 01/28/2026 |
| 9.0.11 | 1 | 02/02/2026 |
| 9.0.10 | 0 | 12/11/2025 |
| 9.0.9 | 1 | 12/31/2025 |
| 9.0.8 | 1 | 12/30/2025 |
| 9.0.7 | 1 | 12/30/2025 |
| 9.0.6 | 1 | 12/30/2025 |
| 9.0.5 | 1 | 12/30/2025 |
| 9.0.4 | 1 | 12/30/2025 |
| 9.0.3 | 2 | 12/10/2025 |
| 9.0.2 | 1 | 12/30/2025 |
| 9.0.1 | 1 | 12/30/2025 |
| 9.0.0 | 1 | 12/31/2025 |
| 9.0.0-rc.2.24473.5 | 3 | 02/03/2026 |
| 9.0.0-rc.1.24431.7 | 2 | 02/05/2026 |
| 9.0.0-preview.7.24405.7 | 8 | 12/10/2025 |
| 9.0.0-preview.6.24327.7 | 12 | 02/10/2026 |
| 9.0.0-preview.5.24306.7 | 8 | 02/09/2026 |
| 9.0.0-preview.4.24266.19 | 8 | 03/02/2026 |
| 9.0.0-preview.3.24172.9 | 1 | 02/02/2026 |
| 9.0.0-preview.2.24128.5 | 2 | 02/05/2026 |
| 9.0.0-preview.1.24080.9 | 8 | 02/12/2026 |
| 8.0.1 | 1 | 12/30/2025 |
| 8.0.0 | 1 | 12/31/2025 |
| 8.0.0-rc.2.23479.6 | 9 | 03/04/2026 |
| 8.0.0-rc.1.23419.4 | 12 | 12/11/2025 |
| 8.0.0-preview.7.23375.6 | 10 | 12/09/2025 |
| 8.0.0-preview.6.23329.7 | 9 | 12/09/2025 |
| 8.0.0-preview.5.23280.8 | 7 | 12/09/2025 |
| 8.0.0-preview.4.23259.5 | 7 | 12/09/2025 |