One Hour Ago - PHP vs Python
date(“YmdH”, strtotime(‘1 hour ago’))
vs
datetime.now() - datetime.timedelta(hours=1)).strftime(“%Y%m%d%H”)
Not actually as bad as I had thought.
date(“YmdH”, strtotime(‘1 hour ago’))
vs
datetime.now() - datetime.timedelta(hours=1)).strftime(“%Y%m%d%H”)
Not actually as bad as I had thought.