# Path: dtformats/decorators.py
# def deprecated(function):  # pylint: disable=invalid-name
#   def IssueDeprecationWarning(*args, **kwargs):
# 
# Path: dtformats/errors.py
# class ParseError(Exception):


import abc
import os
from dfdatetime import filetime as dfdatetime_filetime
from dfdatetime import posix_time as dfdatetime_posix_time
from dtfabric import errors as dtfabric_errors
from dtfabric.runtime import data_maps as dtfabric_data_maps
from dtfabric.runtime import fabric as dtfabric_fabric
from dtformats import decorators
from dtformats import errors
    """Formats an integer as a POSIX date and time in microseconds value.

    Args:
      integer (int): integer.

    Returns:
      str: integer formatted as a POSIX date and time in microseconds value.
    """
    if integer == 0:
      return 'Not set (0)'

    date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(timestamp=integer)
    date_time_string = date_time.CopyToDateTimeString()
    if not date_time_string:
      return '0x{0:08x}'.format(integer)

    return '{0:s} UTC'.format(date_time_string)

  def _FormatIntegerAsOffset(self, integer):
    """Formats an integer as an offset.

    Args:
      integer (int): integer.

    Returns:
      str: integer formatted as an offset.
    """
    return '{0:d} (0x{0:08x})'.format(integer)

  # Deprecated in favor of _FormatArrayOfIntegersAsIPv4Address

# Path: dtformats/decorators.py
# def deprecated(function):  # pylint: disable=invalid-name
#   def IssueDeprecationWarning(*args, **kwargs):
# 
# Path: dtformats/errors.py
# class ParseError(Exception):


# Path: dtformats/data_format.py
import abc
import os
from dfdatetime import filetime as dfdatetime_filetime
from dfdatetime import posix_time as dfdatetime_posix_time
from dtfabric import errors as dtfabric_errors
from dtfabric.runtime import data_maps as dtfabric_data_maps
from dtfabric.runtime import fabric as dtfabric_fabric
from dtformats import decorators
from dtformats import errors

    """Formats an integer as a POSIX date and time in microseconds value.

    Args:
      integer (int): integer.

    Returns:
      str: integer formatted as a POSIX date and time in microseconds value.
    """
    if integer == 0:
      return 'Not set (0)'

    date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(timestamp=integer)
    date_time_string = date_time.CopyToDateTimeString()
    if not date_time_string:
      return '0x{0:08x}'.format(integer)

    return '{0:s} UTC'.format(date_time_string)

  def _FormatIntegerAsOffset(self, integer):
    """Formats an integer as an offset.

    Args:
      integer (int): integer.

    Returns:
      str: integer formatted as an offset.
    """
    return '{0:d} (0x{0:08x})'.format(integer)

  # Deprecated in favor of _FormatArrayOfIntegersAsIPv4Address

  @decorators.deprecated