[elm-discuss] Re: What's the proper way of decoding Date inside JSON that comes through port?

2017-02-07 Thread Justin Mimbs
l", displayName = "fxmy", url = > "https://github.com/fxmy;, picture = > "https://avatars.githubusercontent.com/u/3283415?v=3=73; }, content = > "another test", date = } } > > Any ideas how to hunt this down? > > Cheers, > > 在 2017年1月30日星期

[elm-discuss] Re: What's the proper way of decoding Date inside JSON that comes through port?

2017-01-30 Thread Justin Mimbs
If you already have a Date in JS that you need to get into Elm, then sending it as an ISO string will certainly work. But another, more direct way to pass a date representation through a port is to pass it as a number, using the getTime

[elm-discuss] Re: Visualizing project dependencies

2016-12-22 Thread Justin Mimbs
dag 22 december 2016 07:16:32 UTC+1 schreef Justin Mimbs: >> >> To see it, you can play with this example >> <https://justinmimbs.github.io/elm-module-graph/example/>, showing >> dependencies of knewter/time-tracker >> <https://github.com/knewter/time-tracker>

[elm-discuss] Visualizing project dependencies

2016-12-21 Thread Justin Mimbs
I enjoy looking at dependency graphs, so I wrote a small library that makes diagrams of acyclic digraphs. To put it to use, I made something for exploring package and module dependencies of Elm projects. To see it, you can play with this example

[elm-discuss] Re: Converting a UTC date to a local one?

2016-11-16 Thread Justin Mimbs
What format are you receiving your UTC dates in? If they are proper ISO 8601 strings, then you can get the expected Date with `fromIsoString` from here: http://package.elm-lang.org/packages/justinmimbs/elm-date-extra/2.0.1/Date-Extra#fromIsoString. To be recognized as UTC time the string must

Re: [elm-discuss] Looking for feedback on a Date extra library

2016-07-20 Thread Justin Mimbs
, abbreviation = "UTC" > } > , second = 8 > , month = 7 > , minute = 14 > , millisecond = 86 > , hour = 4 > , day = 18 > , calendar = "gregorian" > } > ``` > I am doing a very naive conversion right now that that ignores the > timezone and store

Re: [elm-discuss] Looking for feedback on a Date extra library

2016-07-19 Thread Justin Mimbs
r package having to remember what is in each of the submodules. > > My only other suggestion would be to check in with rluiten and/or > elm-community and see if there's any possibility of combining the existing > elm-date-extra packages into a single package. > > Best, > --Aaron V.

[elm-discuss] Looking for feedback on a Date extra library

2016-07-16 Thread Justin Mimbs
Hello Elm Discuss, I published an elm-date-extra package last week, where around 50 things are organized into 5 modules. Date.Convert - convert dates to other types (mainly formatted strings) Date.Create - create dates