Change localtime from UTC to UTC + 2 in python
Question: How I can change this code from localtime UTC to UTC+2. Now `hours()` function
print 13 but I need to write 15.

    
    
    import time;
    
    
    def hours():
        localtime =  time.localtime(time.time())
        return localtime.tm_hour
    
    
    def minutes():
        localtime =  time.localtime(time.time()) 
        return localtime.tm_min
    
    def seconds():
       localtime =  time.localtime(time.time())     
       return localtime.tm_sec
    
    
    print(hours())
        #minutes()
        #seconds()
    


Answer: You can use pytz along with datetime modules. for a timezone reference i'd
look [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). I'd
do something of this sort:

    
    
    import datetime
    import pytz
    utc_dt = datetime.datetime.now(tz=pytz.utc)
    amsterdam_tz = pytz.timezone("Europe/Amsterdam")
    local_amsterdam_time = amsterdam_tz.normalize(utc_dt)
    print local_amsterdam_time.hour
    print local_amsterdam_time.minute
    print local_amsterdam_time.second
    

