Esempio n. 1
0
def getDateTime():
    timezone = get_localzone()
    now = getTimeZoneAwareNow(timezone)
    return {
        'year': now.year,
        'month': now.month,
        'day': now.day,
        'hour': now.hour,
        'minute': now.minute,
        'second': now.second,
        'timezone': str(timezone)
    }
Esempio n. 2
0
def getNow():
    timezone = get_localzone().zone
    return getTimeZoneAwareNow(timezone)