Template support for time triggers and time conditions

It would make time based events much easier to program if we were able to use template string formatting in the place of the time values. I would like to use input sliders to set the before, after, or at times instead of having to use discrete time in these locations.

Just to clarify this would be something like an at_template for platform: time? I think that should be the highest priority. Templatable offsets for platform: sun and templatable delays would be nice to have as well but not quite as important to me.

Something like this would be very useful:

      - condition: time_template
        after: {{ input_datetime.am_on_time }}
        before: {{ input_datetime.am_off_time }}