#NEWLINE# def as_utc( self ) : #NEWLINE# #INDENT# 'Return this date in Universal Time Coordinate\n    ' #NEWLINE# if ( self . tzinfo is UTCTimeZone ( ) ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# offset = self . utcoffset ( ) #NEWLINE# if ( offset is None ) : #NEWLINE# #INDENT# dt = self . replace ( tzinfo = UTCTimeZone ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dt = ( self - offset ) . replace ( tzinfo = UTCTimeZone ( ) ) #NEWLINE# #UNINDENT# return DateTime ( dt )