Top-rated recipes tagged "daylight"http://code.activestate.com/recipes/tags/daylight/top/2013-01-03T08:28:36-08:00ActiveState Code RecipesMonotonic local time. And sandwich. (Python) 2013-01-03T08:28:36-08:00Oren Tiroshhttp://code.activestate.com/recipes/users/2033964/http://code.activestate.com/recipes/578270-monotonic-local-time-and-sandwich/ <p style="color: grey"> Python recipe 578270 by <a href="/recipes/users/2033964/">Oren Tirosh</a> (<a href="/recipes/tags/daylight/">daylight</a>, <a href="/recipes/tags/dst/">dst</a>, <a href="/recipes/tags/time/">time</a>). </p> <p>A Mutton, Lettuce and Tomato sandwich is generally agreed to be the greatest thing in the world. But a different kind of MLT comes in at a close second: Monotonic Local Time. This is a time value in your local timezone that takes care of that annoying hour that happens once a year where time goes backwards. It works by extending the previous day by a couple of hours (24, 25 etc) until after the switch.</p>