class_docstr: Base class for all ``dateutil`` ``tzinfo`` objects.
docstr: Given a timezone-aware datetime in a given timezone, calculates a
  timezone-aware datetime in a new timezone.
  
  Since this is the one time that we *know* we have an unambiguous
  datetime object, we take this opportunity to determine whether the
  datetime is ambiguous and in a "fold" state (e.g. if it's the first
  occurrence, chronologically, of the ambiguous datetime).
  
  :param dt:
      A timezone-aware :class:`datetime.datetime` object.
docstr_tok: ["Given","a","timezone-aware","datetime","in","a","given","timezone",",","calculates","a","timezone-aware","datetime","in","a","new","timezone",".","Since","this","is","the","one","time","that","we","*","know","*","we","have","an","unambiguous","datetime","object",",","we","take","this","opportunity","to","determine","whether","the","datetime","is","ambiguous","and","in","a","``","fold","''","state","(","e.g",".","if","it","'s","the","first","occurrence",",","chronologically",",","of","the","ambiguous","datetime",")",".",":","param","dt",":","A","timezone-aware",":","class",":","`","datetime.datetime","`","object","."]
code: def fromutc(self, dt):
      """
      Given a timezone-aware datetime in a given timezone, calculates a
      timezone-aware datetime in a new timezone.
  
      Since this is the one time that we *know* we have an unambiguous
      datetime object, we take this opportunity to determine whether the
      datetime is ambiguous and in a "fold" state (e.g. if it's the first
      occurrence, chronologically, of the ambiguous datetime).
  
      :param dt:
          A timezone-aware :class:`datetime.datetime` object.
      """
      dt_wall = self._fromutc(dt)
  
      # Calculate the fold status given the two datetimes.
      _fold = self._fold_status(dt, dt_wall)
  
      # Set the default fold value for ambiguous dates
      return enfold(dt_wall, fold=_fold)
  
imports: from six import PY2
  from functools import wraps
  from datetime import datetime, timedelta, tzinfo
label_desc: Use image node_id 5 for calling the _tzinfo obj's underlying member method code with example usage: obj.fromutc(dt) and returns: enfold