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.159 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.158 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.157 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.156 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.155 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.154 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.153 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.152 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.151 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.150 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.149 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.148 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.147 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.146 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.145 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.144 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.143 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.142 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.141 tracks/elixir/exercises/gigasecond/example.exs
trackler-2.2.1.140 tracks/elixir/exercises/gigasecond/example.exs