@staticmethod
def get_month(month, as_string=False):
    """Method to get the month as a integer in the [1, 12] range, or as a
        full name.

        :param month: Month, in numeric, short name or long name format
        :type month: int, float, str
        :param as_string: Whether the output will be numeric, or a long name.
        :type as_string: bool

        :returns: Month as integer in the [1, 12] range, or as a long name.
        :rtype: int, str
        :raises: ValueError if input month value is invalid.

        >>> Epoch.get_month(4.0)
        4
        >>> Epoch.get_month('Oct')
        10
        >>> Epoch.get_month('FEB')
        2
        >>> Epoch.get_month('August')
        8
        >>> Epoch.get_month('august')
        8
        >>> Epoch.get_month('NOVEMBER')
        11
        >>> Epoch.get_month(9.0, as_string=True)
        'September'
        >>> Epoch.get_month('Feb', as_string=True)
        'February'
        >>> Epoch.get_month('March', as_string=True)
        'March'
        """
    months_mmm = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',
        'Sep', 'Oct', 'Nov', 'Dec']
    months_full = ['January', 'February', 'March', 'April', 'May', 'June',
        'July', 'August', 'September', 'October', 'November', 'December']
    if isinstance(month, (int, float)):
        month = int(month)
        if month >= 1 and month <= 12:
            if not as_string:
                return month
            else:
                return months_full[month - 1]
        else:
            raise ValueError('Invalid value for the input month')
    elif isinstance(month, str):
        month = month.strip().capitalize()
        if len(month) == 3:
            if month in months_mmm:
                if not as_string:
                    return months_mmm.index(month) + 1
                else:
                    return months_full[months_mmm.index(month)]
            else:
                raise ValueError('Invalid value for the input month')
        elif month in months_full:
            if not as_string:
                return months_full.index(month) + 1
            else:
                return month
        else:
            raise ValueError('Invalid value for the input month')
