Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0220bd267 | ||
|
|
6f5cc529d5 | ||
|
|
3d80256852 | ||
|
|
8731ef03d9 | ||
|
|
f8a2d05b57 |
@@ -582,6 +582,10 @@ defmodule DateTime do
|
||||
It will return the integer with the given unit,
|
||||
according to `System.convert_time_unit/3`.
|
||||
|
||||
If you want to get the current time in Unix seconds,
|
||||
do not do `DateTime.utc_now() |> DateTime.to_unix()`.
|
||||
Simply call `System.os_time(:second)` instead.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> 1_464_096_368 |> DateTime.from_unix!() |> DateTime.to_unix()
|
||||
|
||||
@@ -204,7 +204,7 @@ defmodule Registry do
|
||||
@type guards :: [guard]
|
||||
|
||||
@typedoc "A pattern used to representing the output format part of a match spec"
|
||||
@type body :: [atom | tuple]
|
||||
@type body :: [term]
|
||||
|
||||
@typedoc "A full match spec used when selecting objects in the registry"
|
||||
@type spec :: [{match_pattern, guards, body}]
|
||||
|
||||
@@ -467,8 +467,9 @@ defmodule Logger do
|
||||
|
||||
Erlang/OTP handlers must be listed under your own application:
|
||||
|
||||
config :my_app, :logger,
|
||||
[:handler, :name_of_the_handler, ACustomHandler, configuration = %{}]
|
||||
config :my_app, :logger, [
|
||||
{:handler, :name_of_the_handler, ACustomHandler, configuration = %{}}
|
||||
]
|
||||
|
||||
And then explicitly attached in your `c:Application.start/2` callback:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user