I know how to get time of the current day in seconds
import time
seconds=time.time() % 86400
However the result is valid for UTC. Is there elegant way to do that for local time? I am aware I could get that somehow from local time struct_time
, but it will be rather complicated procedure. Is there any elegant way to do that?