How to complete the information in a python time tuple?
<p>Would like to know if there is a function in python that can take partial information in a time tuple and return a time tuple with complete information.  For example, as I am typing, the date is Thursday, Oct 18, 2012.  This means the day of the year is 292 and the weekday number is 3.  I would like to be able to do something like:</p>

<pre><code>&gt;&gt;&gt; part_tuple=2012,10,18,0,0,0,0,0,0   
&gt;&gt;&gt; complete_time_tuple=unknown_mod.unknown_func(part_tuple)
&gt;&gt;&gt; complete_time_tuple
&gt;&gt;&gt; (2012, 10, 18, 0, 0, 0, 292, 3, 0)
</code></pre>

<p>Alternatively, I would like to do:</p>

<pre><code>&gt;&gt;&gt; part_tuple=2012,0,0,0,0,0,292,0,0
&gt;&gt;&gt; complete_time_tuple=unknown_mod.unknown_func(part_tuple)
</code></pre>

<p>and get complete_tuple back again.  Code can certainly be written to do this, but I am guessing that it's already buried in a python module -- time, datetime, calendar, or something -- somewhere.  Thanks.</p>
