def get_date_time(format='%Y-%m-%d %H:%M:%S', UTC_OFFSET=3):
 local_datetime = datetime.now()
 now = (local_datetime - timedelta(hours=UTC_OFFSET))
 if (format != 'datetimeProperty'):
  now = now.strftime(format)
 return now

def get_date_time ( format = '%Y-%m-%d %H:%M:%S' , UTC_OFFSET = 3 ) : local_datetime = datetime . now ( ) now = ( local_datetime - timedelta ( hours = UTC_OFFSET ) ) if ( format != 'datetimeProperty' ) : now = now . strftime ( format ) return now
get date and time in utc with a specific format by default it utc = -3 .