README.md

# GoodTimes

[![Build Status](https://travis-ci.org/magplus/good_times.svg?branch=master)](https://travis-ci.org/magplus/good_times)
[![Inline docs](http://inch-ci.org/github/magplus/good_times.svg?branch=master)](http://inch-ci.org/github/magplus/good_times)
[![Hex.pm](https://img.shields.io/hexpm/v/good_times.svg)](https://hex.pm/packages/good_times)

Easy to use time functions.

## Examples

```
iex(1)> import GoodTimes
nil
iex(2)> now
{{2015, 2, 26}, {15, 39, 55}}
iex(3)> 10 |> seconds_from_now
{{2015, 2, 26}, {15, 40, 05}}
iex(4)> 60 |> seconds_ago
{{2015, 2, 26}, {15, 38, 55}
```

## Usage

Update your `mix.exs` file and run `mix deps.get`.
```elixir
defp deps do
  [{:good_times, "~> 0.4.0"}]
end
```

Import the GoodTimes functions.
```elixir
defmodule MyModule do
  import GoodTimes
```

For more information, see [the full documentation](http://hexdocs.pm/good_times/).