SChartTimePeriod Class Reference

Inherits from NSObject
Declared in SChartTimePeriod.h
Availability Standard
Premium
Related samples

Overview

An SChartTimePeriod represents a period of time. It starts at a point in time, and has a length defined by an instance of SChartDateFrequency.

Instances of SChartTimePeriod are used by the discontinuous date/time axis (defined in SChartDiscontinuousDateTimeAxis). The axis defines periods of time over which it will skip.

Instance Methods

initWithStart:andLength:

Initializes and returns a newly allocated time period object, starting at the specified start date and running for the specified amount of time.

- (id)initWithStart:(NSDate *)start andLength:(SChartDateFrequency *)length

Parameters

start

The start date of the new time period.

length

The length of the time period, expressed as a SChartDateFrequency.

Return Value

An initialized time period object, or nil if the object couldn’t be created.

Declared In

SChartTimePeriod.h

periodLength

Returns the length of the time period, expressed as a SChartDateFrequency object.

- (SChartDateFrequency *)periodLength

Declared In

SChartTimePeriod.h

periodStart

Returns the starting point of the time period, as a NSDate object.

- (NSDate *)periodStart

Declared In

SChartTimePeriod.h