#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Binders](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders 'Abblix\.Oidc\.Server\.Mvc\.Binders')

## SecondsToTimeSpanModelBinder Class

A model binder that converts seconds \(as string\) to a [System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan') object\.

```csharp
public class SecondsToTimeSpanModelBinder : Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → [ModelBinderBase](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase 'Abblix\.Oidc\.Server\.Mvc\.Binders\.ModelBinderBase') → SecondsToTimeSpanModelBinder

### Remarks
This model binder is useful for binding API parameters that are provided as seconds in string format,
and need to be converted to a [System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan') for internal processing\.
