An epoch time is the count of milliseconds from or to 01 January 1970 00:00:00 UTC (which is the Unix epoch, the zero point of its calendar).
A time, like 20:55, without a date is not anchored and so can't be converted to epoch time.
You could convert to its offset from start-of-day in milliseconds, get the epoch time for some particular day at start-of-day, and add the two values together.
function offsetFromStartOfDayInMilliseconds( h = 0 , m = 0 , s = 0 , ms = 0 ) {
let offset = 0;
offset += h * MS_PER_HR;
offset += m * MS_PER_MIN;
offset += s * MS_PER_SEC;
offset += ms * MS_PER_MS;
return offset;
}
const MS_PER_MS = 1;
const MS_PER_SEC = 1000;
const MS_PER_MIN = 60 * MS_PER_SEC;
const MS_PER_HOUR = 60 * MS_PER_MIN;