System.build_info
You're seeing just the function
build_info
, go back to System module for more information.
Specs
build_info() :: %{ build: String.t(), date: String.t(), revision: String.t(), version: String.t(), otp_release: String.t() }
Elixir build information.
Returns a map with the Elixir version, the Erlang/OTP release it was compiled with, a short Git revision hash and the date and time it was built.
Every value in the map is a string, and these are:
:build
- the Elixir version, short Git revision hash and Erlang/OTP release it was compiled with:date
- a string representation of the ISO8601 date and time it was built:otp_release
- OTP release it was compiled with:revision
- short Git revision hash. If Git was not available at building time, it is set to""
:version
- the Elixir version
One should not rely on the specific formats returned by each of those fields.
Instead one should use specialized functions, such as version/0
to retrieve
the Elixir version and otp_release/0
to retrieve the Erlang/OTP release.
Examples
iex> System.build_info()
%{
build: "1.9.0-dev (772a00a0c) (compiled with Erlang/OTP 21)",
date: "2018-12-24T01:09:21Z",
otp_release: "21",
revision: "772a00a0c",
version: "1.9.0-dev"
}