擅长:python、mysql、java
<pre><code>date_time = datetime.datetime.now()
time = date_time.time()
# date_time is a datetime object tuple of year, month, day, hour, minnute, second, ms
# to access the time portion, simply call the time() function, which will return a tuple of only the hour, minue, second portion
# printing the time will give timestamp representation, but the object is actually of type datetime.time
</code></pre>