A command line (CLI) program for monitoring and downloading 8chan threads. Licensed under MIT.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

time_methods.py 192B

  1. import datetime
  2. import time
  3. def timestamp_now():
  4. return int(time.time())
  5. def timestamp_to_date(t):
  6. d = datetime.datetime.fromtimestamp(t).strftime('%Y-%m-%d %H:%M:%S')
  7. return d