Sha256: 646379db5f8e5a68a542fa857a746015f8866eb7e9c911e1110f43975d5f3e00

Contents?: true

Size: 180 Bytes

Versions: 327

Compression:

Stored size: 180 Bytes

Contents

defmodule Gigasecond do
  def from(time) do
    seconds = :calendar.datetime_to_gregorian_seconds(time)
    :calendar.gregorian_seconds_to_datetime(seconds + 1000000000)
  end
end

Version data entries

327 entries across 327 versions & 1 rubygems

Version Path
trackler-2.2.1.49 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.48 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.47 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.46 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.45 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.44 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.43 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.42 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.41 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.40 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.39 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.38 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.37 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.36 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.35 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.34 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.33 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.32 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.31 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.30 tracks/elixir/exercises/gigasecond/example.exs