from datetime import datetime
import calendar


def string_fmt_time_to_seconds(string_format_time):
    """ utility function to convert a string format time to epoch seconds """
    dt = datetime.strptime(string_format_time, "%Y-%m-%d %H:%M:%S")
    epoch_seconds = calendar.timegm(dt.utctimetuple())
    return epoch_seconds