Inherits from NSObject
Declared in AGClock.h
AGClock.m

Overview

AGClock objects represent a single point in time and used by OTP to calculate the time interval between either the current date or the specified date passed during construction of the object.

Tasks

  •   date

    The date this AGClock object is initialized to.

    property
  • – initWithDate:

    Initialize a new AGClock object using the specified startingDate.

  • – currentInterval

    Calculate the time interval from the date this AGClock object is initialized to.

Properties

date

The date this AGClock object is initialized to.

@property (nonatomic, copy) NSDate *date

Discussion

The date this AGClock object is initialized to.

Declared In

AGClock.h

Instance Methods

currentInterval

Calculate the time interval from the date this AGClock object is initialized to.

- (uint64_t)currentInterval

Return Value

the calculated time interval.

Discussion

Calculate the time interval from the date this AGClock object is initialized to.

Declared In

AGClock.h

initWithDate:

Initialize a new AGClock object using the specified startingDate.

- (id)initWithDate:(NSDate *)startingDate

Parameters

startingDate

The NSDate to initialize to.

Return Value

A new AGClock object set to the date specified by startingDate.

Discussion

Initialize a new AGClock object using the specified startingDate.

Declared In

AGClock.h