Sha256: b4c095672dce14b9474278fbda5804eaec0e2061a936cf296c1830368d5d0766

Contents?: true

Size: 183 Bytes

Versions: 69

Compression:

Stored size: 183 Bytes

Contents

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

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.179 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.178 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.177 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.176 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.175 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.174 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.173 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.172 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.171 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.170 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.169 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.167 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.166 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.165 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.164 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.163 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.162 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.161 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.160 tracks/elixir/exercises/gigasecond/example.exs