Search Results for

    Show / Hide Table of Contents

    Class DataInterval

    Описывает интервал дат для определённого типа архивных записей.

    Inheritance
    System.Object
    DataInterval
    Implements
    System.Collections.IEnumerable<DateTime>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lers.Data
    Assembly: Lers.Core.dll
    Syntax
    public class DataInterval : IEnumerable<DateTime>

    Constructors

    DataInterval(DateTime, DateTime, DeviceDataType)

    Конструктор с инициализацией полей.

    Declaration
    public DataInterval(DateTime startDate, DateTime endDate, DeviceDataType dataType)
    Parameters
    Type Name Description
    DateTime startDate
    DateTime endDate
    DeviceDataType dataType

    DataInterval(DeviceDataType, DateTime, DateTime)

    Конструктор с инициализацией полей.

    Declaration
    public DataInterval(DeviceDataType dataType, DateTime start, DateTime end)
    Parameters
    Type Name Description
    DeviceDataType dataType
    DateTime start
    DateTime end

    DataInterval(DeviceDataType, Interval)

    Конструктор с инициализацией полей.

    Declaration
    public DataInterval(DeviceDataType dataType, Interval interval)
    Parameters
    Type Name Description
    DeviceDataType dataType
    Interval interval

    Properties

    DataType

    Тип данных.

    Declaration
    public DeviceDataType DataType { get; }
    Property Value
    Type Description
    DeviceDataType

    End

    Дата окончания интервала.

    Declaration
    public DateTime End { get; }
    Property Value
    Type Description
    DateTime

    EndDateTime

    Дата окончания интервала.

    Declaration
    public DateTime EndDateTime { get; }
    Property Value
    Type Description
    DateTime

    Interval

    Базовый интервал дат.

    Declaration
    public Interval Interval { get; }
    Property Value
    Type Description
    Interval

    Start

    Дата начала интервала.

    Declaration
    public DateTime Start { get; }
    Property Value
    Type Description
    DateTime

    StartDateTime

    Дата начала интервала.

    Declaration
    public DateTime StartDateTime { get; }
    Property Value
    Type Description
    DateTime

    Methods

    CreateNormalized(DeviceDataType, DateTime, DateTime)

    Создаёт интервал, приводя метки времени к правильному формату.

    Declaration
    public static DataInterval CreateNormalized(DeviceDataType dataType, DateTime start, DateTime end)
    Parameters
    Type Name Description
    DeviceDataType dataType
    DateTime start
    DateTime end
    Returns
    Type Description
    DataInterval

    Extend(Int32)

    Увеличивает окончание интервала на указанное число отрезков.

    Declaration
    public DataInterval Extend(int increment)
    Parameters
    Type Name Description
    System.Int32 increment

    Число отрезков, на которое нужно увеличить интервал.

    Returns
    Type Description
    DataInterval

    GetEnumerator()

    Declaration
    public IEnumerator<DateTime> GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator<DateTime>

    Normalize()

    Возвращает новый интервал с нормализованной относительно типа данных датой начала и окончания.

    Declaration
    public DataInterval Normalize()
    Returns
    Type Description
    DataInterval

    NormalizeEnd()

    Возвращает новый интервал с нормализованной относительно типа данных датой окончания.

    Declaration
    public DataInterval NormalizeEnd()
    Returns
    Type Description
    DataInterval

    NormalizeStart()

    Возвращает новый интервал с нормализованной относительно типа данных датой начала.

    Declaration
    public DataInterval NormalizeStart()
    Returns
    Type Description
    DataInterval

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    ToString(Boolean)

    Declaration
    public string ToString(bool formatToDataType = false)
    Parameters
    Type Name Description
    System.Boolean formatToDataType
    Returns
    Type Description
    System.String

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Implements

    System.Collections.IEnumerable<>
    In This Article
    Back to top ©2018 - 2026, ООО "ЛЭРС УЧЁТ"