Declared in NSDate+ES_Now.h
NSDate+ES_Now.m

Overview

A category adding a “Current Date” method that can be safely overriden. Warning : do not use [NSDate new] explicitly. Swizzling this method is a bad idea since many unit test frameworks rely on it.

Tasks

Class Methods

nowDate

A replacement for [NSDate new] that should be used in testable code. This method can be mocked using the ESNowDateMock class.

+ (NSDate *)nowDate

Return Value

The date and time at the moment of calling.

Declared In

NSDate+ES_Now.h