Relationship between tan and tanh

The following formula holds: $$\tan(z)=-i\tanh(iz),$$ where $\tan$ is the tangent and $\tanh$ is the hyperbolic tangent.