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.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.core.timespantypeconverters
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2018-01-04T08:09:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T14:33:35.000Z (almost 4 years ago)
- Last Synced: 2025-03-04T04:17:25.426Z (over 1 year ago)
- Language: C#
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.