Found 21 packages
UnixTimestamp is a small struct with one, an only one, purpose: To convert to/from UnixTimestamp in various situations. Documentation and source can be found on GitHub at https://github.com/mi7/UnixTimestamp
Implements a simple set of helpers to handle EPOCH timestamps in .NET
Unix time stamp converter for Json.NET
c# structs for to represent unix time stamp
Convert unix second time stamp to DateTime and revert with two functions
This nuget package converts your current UTC time to the Epoch Unix Time.
CSharp.UnixTime
Convert Date Time to Unix Time Stamp and Vice Versa
DateTimeHelper package provides various DateTime class extensions and other utility methods.
This library provides a System.UnixTime as a new Type providing conversion between Unix Time and .NET DateTime.
Unix Timestamp Converter is a tool for converting between Unix timestamps and human-readable dates. It supports both seconds and milliseconds formats.
A set of useful converters for JSON.NET.
A small package used to allow conversion of datetime to epoch time and epoch time to datetime. Is used by calling the class "Epoch" and then either of the static methods "FromUnixTime" and "ToUnixTime". Therefor there is no need to create an instance of this class in-order to use it. Epoch.FromUnixTime takes unix time in milliseconds as a double and returns a DateTime Object. Epoch.ToUnixTime takes a DateTime object and returns the unix timestamp in milliseconds as a double. Notes: FromUnixTime can return a decimal value. This will be updated soon so that the value is truncated before it's returned. Removing the need for you to do so.
UtcMilliTime for .NET 8.0 + .NET 10+ provides Unix time milliseconds (Int64) timestamps, similar to JavaScript's Date.now(), with cross-platform support and NTP synchronization. Features Task-based async APIs, async Main support, conversion extensions (ToIso8601String, ToUtcDateTime, etc.), and new chaining methods for timestamp manipulations (e.g., AddHours, SubtractDays). Usage: using UtcMilliTime; ITime time = Clock.Time; time.SuppressNetworkCalls = false; // Enable NTP sync var timestamp = time.Now; // Int64 timestamp string iso = timestamp.ToIso8601String(); // ISO-8601 string For async Main: await Clock.CreateAsync(); See https://github.com/JPKusumi/UtcMilliTime for details.
The NetExt.DateTime package provides a set of extension methods to simplify working with DateTime in .NET. It includes utilities for converting between Unix time (milliseconds) and DateTime, as well as specifying the DateTimeKind explicitly. This lightweight and efficient library enhances DateTime manipulation, ensuring better clarity and correctness in handling time-related data.
1、IsTrue() or IsFalse() DateTime, DateTimeOffset 2、ToUnixTimestamp()
Common Libraries including: - Bitwise - SecurePassword - DateTime - Unix timestamp convert