zipToTz
Stentor API Reference / stentor-address/src / zipToTz
Function: zipToTz()
zipToTz(
zip):string
Defined in: packages/stentor-address/src/zipToTZ.ts:11
Converts a ZIP code that is in the 5-digit format to a timezone string, such as "America/New_York".
Parameters​
zip​
string
Returns​
string
Throws​
Error if the ZIP code is not in the correct format or if the timezone is not found.