def get_export_timestamp(pefile_object):
    """
    Retrieves timestamps from the export directory, if available.

    :param pefile.PE pefile_object: pefile object.
    :return: Value representing recovered timestamp from PE
    export directory (if present)
    :rtype: int
    """

    timestamp = 0
    if hasattr(pefile_object, 'DIRECTORY_ENTRY_EXPORT'):
        exportdata = pefile_object.DIRECTORY_ENTRY_EXPORT
        timestamp = getattr(exportdata.struct, 'TimeDateStamp', 0)
    return timestamp