0

How would I grab the exact Unix time in python3?

import time
t = (time.strftime("%d/%m/%Y"))

For example I can use the code above and plug that into a converter. But this does not work for what I need because there is no output to hours and seconds

John Tobey
  • 23
  • 6
  • Did you read the documentation for `time.strftime`? There are more formats available than the one you're using. – Ken White Oct 01 '19 at 00:20

1 Answers1

0

Using Time.Time() you can grab the exact UNIX timestamp

John Tobey
  • 23
  • 6