Show / Hide Table of Contents

Class DefaultLockTimeRounding

The default rounding implementation

Inheritance
Object
DefaultLockTimeRounding
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public class DefaultLockTimeRounding : ILockTimeRounding

Constructors

| Improve this Doc View Source

DefaultLockTimeRounding(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 Source

Round(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
ILockTimeRounding.Round(DateTime)
| Improve this Doc View Source

Round(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

Implements
ILockTimeRounding.Round(TimeSpan)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX