# Module for formatting Time in different timezones and languages

**URL:** https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547
**Category:** Request Feedback
**Created:** [November 17, 2018, 9:22pm UTC](https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547 "2018-11-17T21:22:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hans-helmut](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hans-helmut](https://discourse.elm-lang.org/u/hans-helmut)
#### Post date: [November 17, 2018, 9:22pm UTC](https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547/1 "2018-11-17T21:22:48Z")

</div>

Hello,

I post here to discuss this module [https://github.com/hans-helmut/elm-timei18n/](https://github.com/hans-helmut/elm-timei18n/) I made for displaying localised date and time. I would like to have a similar function (maybe with a different API) in Elm direct.

Thanks for your opinions.

H-H

---

<div class="post-metadata">

### Author: ![Libbum](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/libbum/32/1311_2.png) [@Libbum](https://discourse.elm-lang.org/u/Libbum)
#### Post date: [November 17, 2018, 11:17pm UTC](https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547/2 "2018-11-17T23:17:02Z")

</div>

I see in the readme that you want to change the datastructure to use `Dict`s but didn’t since you want to sort on custom types. I had this issue a few days ago and solved it with [matthewsj/elm-ordering](https://package.elm-lang.org/packages/matthewsj/elm-ordering/latest/).

---

<div class="post-metadata">

### Author: ![hans-helmut](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@hans-helmut](https://discourse.elm-lang.org/u/hans-helmut)
#### Post date: [November 18, 2018, 8:23pm UTC](https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547/3 "2018-11-18T20:23:17Z")

</div>

In my case, I think **now** a `case ... of`is better than a `Dict`, as the compiler can check the completeness, ensuring all possible values are handled.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)
#### Post date: [November 28, 2018, 8:23pm UTC](https://discourse.elm-lang.org/t/module-for-formatting-time-in-different-timezones-and-languages/2547/4 "2018-11-28T20:23:23Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
