code: def tmpl_time(text, fmt, cur_fmt):
          
          return time.strftime(fmt, time.strptime(text, cur_fmt))
docs: Format a time value using `strftime`.
  
          * synopsis: ``%time{date_time,format,curformat}``
          * description: Return the date and time in any format accepted by \
              strftime. For example, to get the year some music was added to \
              your library, use %time{$added,%Y}.