I am new at python and I am trying to generate the same epoch time for entire day using datetime and time modules. So far I am not able to succeed. I have tried the same thing in javascript.
Following is code for it
var d = new Date();
var n = d.toDateString();
var myDate = new Date(n);
var todays_date = myDate.getTime()/1000.0;
console.log(todays_date)
How can I do it in python? Please help. thanks in advance