def get_time(timeformat='%m-%d-%y_%T%p', raw=False, filename_friendly=False,
    replacement_seperator='-'):
    """
    Gets current time in local time zone.
    if raw: True then raw datetime object returned without formatting.
    if filename_friendly: replace ':' with replacement_separator
    """
    from datetime import datetime
    from pytz import timezone
    from tzlocal import get_localzone
    now_utc = datetime.now(timezone('UTC'))
    now_local = now_utc.astimezone(get_localzone())
    if raw == True:
        return now_local
    else:
        now = now_local.strftime(timeformat)
    if filename_friendly == True:
        return now.replace(':', replacement_seperator).lower()
    else:
        return now
