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, nonnull) 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.

- (nonnull instancetype)initWithDate:(nonnull NSDate *)date

Discussion

Initializes an MSDateOffset instance with the given date.

Declared In

MSDateOffset.h

+ offsetFromDate:

Creates an MSDateOffset instance with the given date.

+ (nonnull instancetype)offsetFromDate:(nonnull NSDate *)date

Discussion

Creates an MSDateOffset instance with the given date.

Declared In

MSDateOffset.h