iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIDateIntervalUtil

@interface SCIDateIntervalUtil : NSObject

Helper class for work with date intervals.

  • The days in year.

    Declaration

    Objective-C

    + (double)daysInYear;

    Swift

    class func daysInYear() -> Double
  • The days in month.

    Declaration

    Objective-C

    + (double)daysInMonth;

    Swift

    class func daysInMonth() -> Double
  • Gets interval from value in seconds.

    Declaration

    Objective-C

    + (double)fromSeconds:(double)seconds;

    Swift

    class func fromSeconds(_ seconds: Double) -> Double

    Parameters

    seconds

    The value in seconds.

    Return Value

    The date interval.

  • Gets interval from value in minutes.

    Declaration

    Objective-C

    + (double)fromMinutes:(double)minutes;

    Swift

    class func fromMinutes(_ minutes: Double) -> Double

    Parameters

    minutes

    The value in minutes.

    Return Value

    The date interval.

  • Gets interval from value in hours.

    Declaration

    Objective-C

    + (double)fromHours:(double)hours;

    Swift

    class func fromHours(_ hours: Double) -> Double

    Parameters

    hours

    The value in hours.

    Return Value

    The date interval.

  • Gets interval from value in days.

    Declaration

    Objective-C

    + (double)fromDays:(double)days;

    Swift

    class func fromDays(_ days: Double) -> Double

    Parameters

    days

    The value in days.

    Return Value

    The date interval.

  • Gets interval from value in weeks.

    Declaration

    Objective-C

    + (double)fromWeeks:(double)weeks;

    Swift

    class func fromWeeks(_ weeks: Double) -> Double

    Parameters

    weeks

    The value in weeks.

    Return Value

    The date interval.

  • Gets interval from value in months.

    Declaration

    Objective-C

    + (double)fromMonths:(double)months;

    Swift

    class func fromMonths(_ months: Double) -> Double

    Parameters

    months

    The value in months.

    Return Value

    The date interval.

  • Gets interval from value in years.

    Declaration

    Objective-C

    + (double)fromYears:(double)years;

    Swift

    class func fromYears(_ years: Double) -> Double

    Parameters

    years

    The value in years.

    Return Value

    The date interval.