TimeZoneConverter.Posix
5.0.0
dotnet add package TimeZoneConverter.Posix --version 5.0.0
NuGet\Install-Package TimeZoneConverter.Posix -Version 5.0.0
<PackageReference Include="TimeZoneConverter.Posix" Version="5.0.0" />
paket add TimeZoneConverter.Posix --version 5.0.0
#r "nuget: TimeZoneConverter.Posix, 5.0.0"
// Install TimeZoneConverter.Posix as a Cake Addin #addin nuget:?package=TimeZoneConverter.Posix&version=5.0.0 // Install TimeZoneConverter.Posix as a Cake Tool #tool nuget:?package=TimeZoneConverter.Posix&version=5.0.0
TimeZoneConverter.Posix
TimeZoneConverter.Posix generates POSIX time zone strings from standard time zone identifiers. POSIX time zones are useful in certain scenarios where time zone data is not present, such as when working with IoT devices.
It is a separate helper library that is maintained in the same repository as TimeZoneConverter
. You only need it if you require support for POSIX time zones.
Note that TimeZoneConverter.Posix
is dependendent on both TimeZoneConverter
and Noda Time at run time.
Installation
- Add the
TimeZoneConverter.Posix
NuGet package to your project. - Import the
TimeZoneConverter.Posix
namespace where needed.
Compatibility
As of version 4.0.0, TimeZoneConverter.Posix works with all of the following:
- .NET 5 or greater
- .NET Core 2.0 or greater
- .NET Framework 4.6.2 and greater
.NET Framework versions less than 4.6.2 are no longer supported.
Example Usage
Generate a POSIX time zone string from a Windows time zone ID.
string posix = PosixTimeZone.FromWindowsTimeZoneId("Eastern Standard Time");
// Result: "EST5EDT,M3.2.0,M11.1.0"
Generate a POSIX time zone string from an IANA time zone name.
string posix = PosixTimeZone.FromIanaTimeZoneName("Australia/Sydney");
// Result: "AEST-10AEDT,M10.1.0,M4.1.0/3"
Generate a POSIX time zone string from a TimeZoneInfo
object.
string posix = PosixTimeZone.FromTimeZoneInfo(TimeZoneInfo.Local);
License
This library is provided free of charge, under the terms of the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- NodaTime (>= 3.2.0)
- TimeZoneConverter (>= 7.0.0)
-
.NETStandard 2.0
- NodaTime (>= 3.2.0)
- TimeZoneConverter (>= 7.0.0)
-
net6.0
- NodaTime (>= 3.2.0)
- TimeZoneConverter (>= 7.0.0)
-
net8.0
- NodaTime (>= 3.2.0)
- TimeZoneConverter (>= 7.0.0)
-
net9.0
- NodaTime (>= 3.2.0)
- TimeZoneConverter (>= 7.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TimeZoneConverter.Posix:
Package | Downloads |
---|---|
Frank.Libraries.Time
A better injectable time, and include "Frank Time" a week-based calendar concept (Beta) |
|
Neon.Api
Package Description |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on TimeZoneConverter.Posix:
Repository | Stars |
---|---|
LGouellec/streamiz
.NET Stream Processing Library for Apache Kafka 🚀
|
|
emmauss/Ryujinx
Experimental Switch emulator written in C#
|