dt.strftime('%s') doesn't work on Windows systems (ValueError: Invalid format string) due to %s being a Unix-based system only compatible string format for datetimes.
Using timestamp introduced in Python 3.3 is compatible with Unix and Windows-based systems and functional for the project and when using it later for connecting it to a front-end (the other real-world example projects based on Conduit).
dt.strftime('%s')
doesn't work on Windows systems (ValueError: Invalid format string
) due to%s
being a Unix-based system only compatible string format for datetimes.Using
timestamp
introduced in Python 3.3 is compatible with Unix and Windows-based systems and functional for the project and when using it later for connecting it to a front-end (the other real-world example projects based on Conduit).