I often need to do this to create NSDate
objects to compare against in tests—to make sure a timestamp specified in millis past the Epoch UTC in a JSON file is parsed correctly, for example.
What is the correct way to do this in Objective-C with the least boilerplate?