I have two date-time string like "1637279999" that converts into "Thursday, 18 November 2021 23:59:59" and "1637193600" that converts into "Thursday, 18 November 2021 00:00:00". I converted using https://www.epochconverter.com/.
Is there any python function that converts directly current date-time (with HH:MM:SS) into the following formats?
String 1: Thursday, 18 November 2021 23:59:59 => 1637279999
String 2: Thursday, 18 November 2021 00:00:00 => 1637193600