macOS Sierra 10.12.4 brought Night Shift to Mac. As you know, Night Shift debuted on iPhone, iPad and iPod touch with the release of iOS 9 nearly two years ago.
Like with iOS devices, macOS's implementation of the feature automatically shifts your display's colors to the warmer end of the color spectrum after dark, based on your computer's clock and geolocation. This helps cut down on exposure to blue light, which is said to cause sleeping problems.
Your computer must meet certain hardware requirements in order to benefit from Night Shift. Here are the full Mac system requirements for Night Shift and how to find out whether or not your particular Mac model is compatible with this feature.