An open API service indexing awesome lists of open source software.

https://github.com/shuttle/shuttle.core.timespantypeconverters

TimeSpan type converters.
https://github.com/shuttle/shuttle.core.timespantypeconverters

Last synced: about 1 year ago
JSON representation

TimeSpan type converters.

Awesome Lists containing this project

README

          

# Shuttle.Core.TimeSpanTypeConverters

```
PM> Install-Package Shuttle.Core.TimeSpanTypeConverters
```

Contains type converters for use with `TimeSpan`.

## StringDurationArrayConverter

The `StringDurationArrayConverter` converts from a comma-delimited string that contains durations formatted as `length` followed by `duration` as `ms` (millisecond), `s` (second), `m` (minute), `h` (hour), or `d`. It can optionally be followed by `*repeat` to repeat the duration for the specifiied number of times.