Found 149 packages
A collection of helpful TimeSpan extension methods
.NET parser for human-written time spans.
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
Library with Windows Forms control to capture a natural languange time span/duration such as "3 days, 2 hours, 19 minutes" instead of "3:02:19:00".
DateTimeRange and various DateTime and TimeSpan extension methods.
A small library to handle ISO8601 durations (e.g. P1Y for 1 year, PT2H30M for 2 hours and 30 minutes) in C#.
Package Description
ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time.
Package Description
Simple extension to the original HotChocolate Type system to include basic support for `TimeSpan`s.
TimeSpan type converters.
Implements a simple set of helpers to handle EPOCH timestamps in .NET
Library to extend the functionality of the TimeSpan structure to be comparable, serializable, and convertible. It also supports localized string formatting and parsing so a TimeSpan can be represented by something like "3 days, 2 hours, 19 minutes" instead of "3:02:19:00".
It is well known that DateTime.Now is often used inappropriately. For example, it may be used together with TimeSpan to produce a task's timeout point or subtracted from another DateTime to calculate a duration. This can cause subtle bugs because DateTime is not monotonic: the system clock can change, making the result of the subtraction inaccurate -- potentially causing a premature timeout or an infinite loop. Yet, DateTime is an incredibly convenient and widely used value type in .NET code and is especially useful when printed in ISO-8601 format (with the "O" format specifier). With the "O" specifier, you can resolution down to tenths of a microsecond, which is nice. Until you learn that the resolution of the system clock is usually more coarse than several *milliseconds*, making the additional decimal places misleading garbage values. For calculating durations (time between events), it is better to use a high-resolution and monotonic clock like that provided by System.Diagnostics.Stopwatch: on most computers it is far more **accurate** than DateTime.Now even though, seemingly paradoxically, on a few systems, its *resolution* is lower than that of DateTime. Also, unsurprisingly, Stopwatch does not provide values that correlate to times of day: while it is appropriate for calculating durations, it is inappropriate for timestamping against a readable date and time. This library provides timestamps (both as DateTime and as analogous value types it defines) that use the Stopwatch (and your system's high peformance event counter) as its clock, but returns values as DateTimes or an analog thereto so that these values can be used for a mixed purpose of timestamping and providing a meaningful way to calculate time elapsed between events or to calculate how long to perform a programmatic task.
Library for work with Time spans
A basic timespan picker for UWP
This package provides the functionality to utilize the features of Syncfusion® WPF BusyIndicator, Button, Split Button, Calendar, Carousel, Chromeless Window, Color Picker, Color Picker Palette, ComboBox, Date-time edit, Double TextBox, Integer TextBox, Percent TextBox, Currency TextBox, Masked TextBox, Menu, Spell checker, Tile View, Time span edit, ToolBar, and Up-down.
Package Description
Timespan converter for Newtonsoft json
Helper slots for Magic to allow you to easily modify and manipulate dates from your own Hyperlambda. To use package go to https://polterguy.github.io