I am trying to convert a date to Unix time (which I ultimately need as a string) in Python 2.7. For example, 2017-06-29 (no time, but for purposes of converting to Unix should always be 00:00:00) should be '1498694400' of type string.
What is the cleanest, most efficient way to convert a YYYY-MM-DD to Unix string?
[python] convert a date to Unix time. Please realize that S.O. is a database of great Q/A, not just a one-way forum to ask Qs. Good luck.