MSDateOffset Class Reference

Inherits from NSObject
Declared in MSDateOffset.h

Overview

The MSDateOffset class is used to represent an NSDate that is stored as a DateTimeOffset in the Mobile Service. This class is used when building NSPredicates for an MSQuery.

Properties

  date

The date represented by tne MSDateOffset instance.

@property (nonatomic, strong) NSDate *date

Discussion

The date represented by tne MSDateOffset instance.

Declared In

MSDateOffset.h

Initializing the MSDateOffset Object

– initWithDate:

Initializes an MSDateOffset instance with the given date.

- (id)initWithDate:(NSDate *)date

Discussion

Initializes an MSDateOffset instance with the given date.

Declared In

MSDateOffset.h

+ offsetFromDate:

Creates an MSDateOffset instance with the given date.

+ (id)offsetFromDate:(NSDate *)date

Discussion

Creates an MSDateOffset instance with the given date.

Declared In

MSDateOffset.h