Skip to content

Instantly share code, notes, and snippets.

Julian Popov ju-popov

Block or report user

Report or block ju-popov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View music.md

Music

Spotify Playlists

Personal

View my-books.md

Legend

🏆 - Best Of

Fiction (17 of 33)

  • ✓ John Green - The Fault in Our Stars (Джон Грийн - Вината в нашите звезди) 🏆
  • ✓ Stephen King - 11/22/63 (Стивън Кинг - 22 ноември 1963) 🏆
  • ✓ Suzanne Collins - The Hunger Games (Сюзан Колинс - Игрите на глада) 🏆
  • ✓ Aldous Huxley - Brave New World (Олдъс Хъксли - Прекрасният нов свят)
@ju-popov
ju-popov / timestamp.py
Last active Jan 22, 2018
Python DateTime / Timestamp Convertion
View timestamp.py
######################################################################
# CURRENT AWARE LOCAL DATETIME
######################################################################
from datetime import datetime
from tzlocal import get_localzone
local_tz = get_localzone()
local_dt = datetime.now(local_tz)
You can’t perform that action at this time.