Class CharSpanExtensions
Time-related extension methods for
Inheritance
System.Object
CharSpanExtensions
Namespace: X10D.Time
Assembly: X10D.dll
Syntax
public static class CharSpanExtensions : object
Methods
| Improve this Doc View SourceToTimeSpan(ReadOnlySpan<Char>)
Parses this span of characters as a shorthand time span (e.g. 3w 2d 1h) and converts it to an instance of
Declaration
public static TimeSpan ToTimeSpan(this ReadOnlySpan<char> input)
Parameters
Type | Name | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ReadOnlySpan<System.Char> | input | The input span of characters. Floating point is not supported, but integers with the following units are supported:
|
Returns
Type | Description |
---|---|
TimeSpan | A new instance of |