Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / Metric Class / CalculateOffset Method
The date and time to calculate an offset date and time from
The interval to add or subtract from the baseline
The number of intervals to go forward or (if negative) backwards

In This Topic
    CalculateOffset Method
    In This Topic
    Calculates the offset date from the provided baseline for the specified interval
    Syntax
    'Declaration
     
    
    Public Function CalculateOffset( _
       ByVal baseline As DateTimeOffset, _
       ByVal interval As MetricSampleInterval, _
       ByVal intervals As Integer _
    ) As DateTimeOffset

    Parameters

    baseline
    The date and time to calculate an offset date and time from
    interval
    The interval to add or subtract from the baseline
    intervals
    The number of intervals to go forward or (if negative) backwards
    Remarks
    To calculate a backwards offset (the date that is the specified interval before the baseline) use a negative number of intervals. For example, -1 intervals will give you one interval before the baseline.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also