Current section
17 Versions
Jump to
Current section
17 Versions
Compare versions
4
files changed
+9
additions
-7
deletions
| @@ -11,7 +11,7 @@ You can add Chronos as a dependency in your `mix.exs` file. Since it only requir | |
| 11 11 | |
| 12 12 | ```elixir |
| 13 13 | def deps do |
| 14 | - [ { :chronos, github: "nurugger07/chronos" } ] |
| 14 | + [ { :chronos, '~> 0.3.2' } ] |
| 15 15 | end |
| 16 16 | ``` |
| @@ -4,9 +4,9 @@ | |
| 4 4 | {<<"description">>, |
| 5 5 | <<"An Elixir library for handling dates. It can be used to quickly determine a date. In a human readable format.\n">>}. |
| 6 6 | {<<"files">>, |
| 7 | - [<<"lib/chronos/formatter.ex">>,<<"lib/chronos/validation.ex">>, |
| 8 | - <<"lib/chronos.ex">>,<<"mix.exs">>,<<"README.md">>]}. |
| 7 | + [<<"lib/chronos.ex">>,<<"lib/chronos/formatter.ex">>, |
| 8 | + <<"lib/chronos/validation.ex">>,<<"mix.exs">>,<<"README.md">>]}. |
| 9 9 | {<<"licenses">>,[<<"Apache 2.0">>]}. |
| 10 10 | {<<"links">>,#{<<"github">> => <<"https://github.com/nurugger07/chronos">>}}. |
| 11 11 | {<<"requirements">>,#{}}. |
| 12 | - {<<"version">>,<<"0.3.0">>}. |
| 12 | + {<<"version">>,<<"0.3.2">>}. |
| @@ -182,7 +182,9 @@ defmodule Chronos.Formatter do | |
| 182 182 | |
| 183 183 | defp apply_format({ _date, { h, _, _ }}, "%H") when h < 10, do: "0#{h}" |
| 184 184 | defp apply_format({ _date, { h, _, _ }}, "%H"), do: "#{h}" |
| 185 | + defp apply_format({ _date, { _, m, _ }}, "%M") when m < 10, do: "0#{m}" |
| 185 186 | defp apply_format({ _date, { _, m, _ }}, "%M"), do: "#{m}" |
| 187 | + defp apply_format({ _date, { _, _, s }}, "%S") when s < 10, do: "0#{s}" |
| 186 188 | defp apply_format({ _date, { _, _, s }}, "%S"), do: "#{s}" |
| 187 189 | |
| 188 190 | defp apply_format({ _date, { h, _, _ }}, "%P") when h < 12, do: "AM" |
| @@ -6,9 +6,9 @@ defmodule Chronos.Mixfile do | |
| 6 6 | def project do |
| 7 7 | [ |
| 8 8 | app: :chronos, |
| 9 | - version: "0.3.0", |
| 10 | - elixir: ">= 0.13.0", |
| 11 | - deps: [{ :ex_doc, github: "elixir-lang/ex_doc" }], |
| 9 | + version: "0.3.2", |
| 10 | + elixir: ">= 0.14.0", |
| 11 | + deps: [], |
| 12 12 | package: [ |
| 13 13 | files: ["lib", "mix.exs", "README*", "LICENSE*"], |
| 14 14 | contributors: ["Johnny Winn"], |