Code Monkey home page Code Monkey logo

elm-date-format's People

Contributors

andys8 avatar erizocosmico avatar ghivert avatar huluk avatar joshy avatar julianjelfs avatar lorenzo avatar mgold avatar milibopp avatar pablohirafuji avatar pisys avatar rl-king avatar ryanolsonx avatar seanhess avatar srolel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elm-date-format's Issues

Add new release with "elm-version" in elm-package.json.

Hi -

It's not possible to use this package right now with 0.15 of the Elm platform because the latest version of the project with elm-version defined in elm-package.json hasn't yet been tagged as a release.

Could you tag master with a new release so that the updated elm-package.json will get pulled down by elm package install?

Elm 0.19?

Hi
Any plans to update this for Elm 0.19?
Thanks

Module name

I just noticed that @heyLu forked this package, renaming Elm-Format-String to elm-format-date and FormatString to FormatDate for the module name.

I'd propose elm-date-format and Date.Format myself for uniformity (at least, this is how circuithub modules look). This way it lines up nicely with say

-- Other (potential) date packages
elm-date-extra         Date.Extra
elm-date-conversion    Date.Convert
elm-date-format        Date.Format
elm-date-format-extra  Date.Format.Extra

-- Other (potential) formatting packages
elm-number-format      Number.Format

-- Existing core libraries
core                   Json.Decode
core                   Json.Encode

I only thought I'd mention it since this strange fork now exists, I'm not massively concerned by naming conventions!

Add milliseconds

It looks like there is no way to render milliseconds at all. Could we add this feature?

Add non-zero padded month of year

In the format directives there is one missing: a space-padded (or non-padded) month number (July -> 7 or 7). I'd find that useful :)

Inconsistent output from formatISO8601

Date.Format.formatISO8601 appears to be ignoring time zone information.

Here, in the repl, Date.fromString appears to parse dates correctly; toString shows them in BST or GMT depending when they fall in the year :

> Date.fromString "2015-11-10T20:34:17Z" 
Ok <Tue Nov 10 2015 20:34:17 GMT+0000 (GMT)> : Result.Result String Date.Date

> Date.fromString "2015-10-10T20:34:17Z" 
Ok <Sat Oct 10 2015 21:34:17 GMT+0100 (BST)> : Result.Result String Date.Date

But when I use Date.Format.formatISO8601 these two examples result in different times: both should be 20:34, but the one in October shows up as 21:34:

> Date.fromString "2015-11-10T20:34:17Z" |> Result.map Date.Format.formatISO8601
Ok "2015-11-10T20:34:17Z" : Result.Result String String

> Date.fromString "2015-10-10T20:34:17Z" |> Result.map Date.Format.formatISO8601
Ok "2015-10-10T21:34:17Z" : Result.Result String String

`format "%H" 0` shows "09"

Hi, thank you for present great library! ๐Ÿ˜ƒ

In my opinion,
format "%H" 0 should show "00",
but it shows "09".

%k, %I, and %l are same, it shows with "9".

Is this correct behabior?

Sorry if my opinion is wrong ๐Ÿ˜ฃ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.