Now this stuff is friggin' awesome. Check out Redshift, an app that will do some color shifting magic to help your eyes adjust towards sleep more easily.
The color temperature of your screen is set according to the position of the sun. A different color temperature is set during night and daytime.