# Timex

> A complete date and time library for Elixir, with full time zone support

Source: https://talira.ai/catalog/timex-wm5e0zay
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dates and times](https://talira.ai/categories/libraries/dates-and-times), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Paul Schoenfelder](https://talira.ai/orgs/paul-schoenfelder.md)

Timex is a date and time library for Elixir by Paul Schoenfelder, with full time zone support through the tzdata package. It shifts dates and times by any unit, compares and diffs them, works with durations and intervals, and formats and parses with its own directives, strftime or relative ("3 minutes ago") formats. Its types stand in for Erlang's and Elixir's own, and the timex_ecto package adds Ecto types.

## Links

- GitHub: https://github.com/bitwalker/timex
- Docs: https://hexdocs.pm/timex

## Problems it solves

- convert a datetime between time zones in Elixir
- format a date as 3 minutes ago in Phoenix
- parse a date string with a custom format in Elixir
- add days or hours to a DateTime in Elixir

## Features

- shift, compare and diff dates and times
- full time zone support through tzdata
- format and parse with Timex directives, strftime or relative time
- durations and intervals
- works on Elixir's Date, NaiveDateTime and DateTime

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.90, adoption 0.65, momentum 0.34, community 0.94, backing 0.30, extensibility 0.00.

- last commit 20 days ago
- 45 commits in the last 90 days
- latest release 4.0.0 26 days ago
- 1.8k GitHub stars
- 220 contributors
- backed by Paul Schoenfelder

## Alternatives

- [Tzdata](https://talira.ai/catalog/tzdata-bpq05f38.md): The IANA time zone database for Elixir, kept up to date automatically

## Sources

[^1]: https://github.com/bitwalker/timex (checked 25 Nov 2026)
[^2]: https://github.com/bitwalker/timex/blob/main/mix.exs (checked 25 Nov 2026)
