<s> from __future__ import absolute_import <EOL> import time <EOL> from geocoder . base import Base <EOL> from geocoder . location import Location <EOL> class Timezone ( Base ) : <EOL> """<STR_LIT>""" <EOL> provider = '<STR_LIT>' <EOL> method = '<STR_LIT>' <EOL> def __init__ ( self , location , ** kwargs ) : <EOL> self . url = '<STR_LIT>' <EOL> self . location = str ( Location ( location ) ) <EOL> self . timestamp = kwargs . get ( '<STR_LIT>' , time . time ( ) ) <EOL> self . params = { <EOL> '<STR_LIT:location>' : self . location , <EOL> '<STR_LIT>' : self . timestamp , <EOL> } <EOL> self . _initialize ( ** kwargs ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" . format ( self . status , self . provider , self . timeZoneName ) <EOL> def _exceptions ( self ) : <EOL> if self . parse [ '<STR_LIT>' ] : <EOL> self . _build_tree ( self . parse [ '<STR_LIT>' ] [ <NUM_LIT:0> ] ) <EOL> @ property <EOL> def ok ( self ) : <EOL> return bool ( self . timeZoneName ) <EOL> @ property <EOL> def timeZoneId ( self ) : <EOL> return self . parse . get ( '<STR_LIT>' ) <EOL> @ property <EOL> def timeZoneName ( self ) : <EOL> return self . parse . get ( '<STR_LIT>' ) <EOL> @ property <EOL> def rawOffset ( self ) : <EOL> return self . parse . get ( '<STR_LIT>' ) <EOL> @ property <EOL> def dstOffset ( self ) : <EOL> return self . parse . get ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> g = Timezone ( [ <NUM_LIT> , - <NUM_LIT> ] ) <EOL> g . debug ( ) </s>
