Formatting a date and time with periods as separators
<p>I am trying to apply current time and date in a Windows application using Python. I used the following code:</p>

<pre><code>current_time = str(time.strftime("%m.%d.%Y %H:%M"))

type(waitForObject("{name='TextBoxSampleName'}"), "Test." + current_time)
</code></pre>

<p>but when I run  the script I see the following format</p>

<p><code>27Test.06.03.2016 10</code> (the hours and minutes are separated for some reason)</p>

<p>I want the final result to be <code>Test.06.03.2016.10:27</code></p>