How does the following code in python work? How to work with struct_time objects
<p>Hi if I do the following I can convert from a time_struct object to a datetime object:</p>

<p>mydate = datetime.datetime(*time.localtime()[:6])</p>

<p>How does this code work? What do the * and the [:6] mean?</p>
