# `Bourse.Timestamp`
[🔗](https://github.com/ZenHive/bourse/blob/main/lib/bourse/timestamp.ex#L1)

Timestamp formatting helpers shared across request signing and response parsing.

# `iso8601_from_ms`

```elixir
@spec iso8601_from_ms(integer() | nil) :: String.t() | nil
```

Formats a millisecond Unix timestamp as an ISO 8601 string, or nil when the timestamp is absent.

# `iso8601_seconds_from_ms`

```elixir
@spec iso8601_seconds_from_ms(integer() | nil) :: String.t() | nil
```

Formats a millisecond Unix timestamp as a UTC ISO 8601 string truncated to
whole seconds, with no zone designator — the `iso8601_seconds` authored format
(`2017-05-11T15:19:30`), which htx/huobi/bittrade's signing scheme requires.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
