How do I get the current time in Elm?

Update for 0.19 It is not possible to get the current time using the standard library.. You need to use elm/time. As with 0.18, all you need is a command and Msg to handle the result type Msg = OnTime Time.Posix getTime : Cmd Msg getTime = Task.perform OnTime Time.now Update for 0.18 This has … Read more