Class TimeStampInDateTimeRangeToRatioConverter
Inheritance
System.Object
TimeStampInDateTimeRangeToRatioConverter
Namespace: ArtOfTest.WebAii.Design.UI
Assembly: ArtOfTest.WebAii.Design.dll
Syntax
public class TimeStampInDateTimeRangeToRatioConverter : SimpleMultiValueConverterExtensionBase
Constructors
TimeStampInDateTimeRangeToRatioConverter()
Declaration
public TimeStampInDateTimeRangeToRatioConverter()
Methods
Convert(Object[])
Declaration
public override object Convert(object[] values)
Parameters
System.Object[]
values
|
Returns
System.Object
|
GetDurationRatio(DateTime, DateTime, DateTime, DateTime)
Declaration
public static double GetDurationRatio(DateTime startTimeOuter, DateTime stopTimeOuter, DateTime startTimeInner, DateTime stopTimeInner)
Parameters
System.DateTime
startTimeOuter
|
System.DateTime
stopTimeOuter
|
System.DateTime
startTimeInner
|
System.DateTime
stopTimeInner
|
Returns
System.Double
|
GetDurationRatio(DateTime, DateTime, TimeSpan)
Declaration
public static double GetDurationRatio(DateTime startTime, DateTime stopTime, TimeSpan duration)
Parameters
System.DateTime
startTime
|
System.DateTime
stopTime
|
System.TimeSpan
duration
|
Returns
System.Double
|
GetForwardRatio(DateTime, DateTime, DateTime)
Declaration
public static double GetForwardRatio(DateTime startTime, DateTime stopTime, DateTime timestamp)
Parameters
System.DateTime
startTime
|
System.DateTime
stopTime
|
System.DateTime
timestamp
|
Returns
System.Double
|