Class DefaultLockTimeRounding
The default rounding implementation
Inherited Members
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class DefaultLockTimeRounding : ILockTimeRounding
Constructors
| Improve this Doc View SourceDefaultLockTimeRounding(DefaultLockTimeRoundingMode)
Initializes a new instance of the DefaultLockTimeRounding class.
Declaration
public DefaultLockTimeRounding(DefaultLockTimeRoundingMode roundingMode)
Parameters
Type | Name | Description |
---|---|---|
DefaultLockTimeRoundingMode | roundingMode | The rounding mode |
Methods
| Improve this Doc View SourceRound(DateTime)
The rounding implementation
Declaration
public DateTime Round(DateTime dt)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dt | The date and time to round |
Returns
Type | Description |
---|---|
DateTime | The new DateTime |
Implements
| Improve this Doc View SourceRound(TimeSpan)
The rounding implementation
Declaration
public TimeSpan Round(TimeSpan ts)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | ts | The time span to round |
Returns
Type | Description |
---|---|
TimeSpan | The new timestamp |