A vessel arrives in San Francisco from a foreign voyage. When MUST the Master make formal entry at the custom house?

A
Within 24 hours after arrival, Sundays and holidays excepted
B
Within 48 hours after arrival, Sundays and holidays excepted
C
Within 48 hours and before all foreign cargo is discharged for that port
D
Within 24 hours after arrival
E