Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlalchemy datetime utcnow

from pytz import timezone
from datetime import datetime

UTC = timezone('UTC')

def time_now():
    return datetime.now(UTC)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlalchemy #datetime #utcnow
ADD COMMENT
Topic
Name
2+6 =