# `Timex.Time`
[🔗](https://github.com/bitwalker/timex/blob/4.0.0/lib/time/time.ex#L1)

This module provides helper functions for working with Times

# `to_12hour_clock`

```elixir
@spec to_12hour_clock(0..24) :: {1..12, :am | :pm}
```

Converts an hour between 0..24 to {1..12, :am/:pm}

## Examples

    iex> Timex.Time.to_12hour_clock(23)
    {11, :pm}

# `to_24hour_clock`

```elixir
@spec to_24hour_clock(1..12, :am | :pm) :: 0..23
```

Converts an hour between 1..12 in either am or pm, to value between 0..24

## Examples

    iex> Timex.Time.to_24hour_clock(7, :pm)
    19

---

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