Bson.UTC

Represent UTC datetime

iex> inspect %Bson.UTC{ms: 1410473634449} “2014-9-11T22:13:54”

Source

Summary

from_now(arg1)

Returns a struct Bson.UTC using a tuple given by :erlang.now/0

to_now(utc)

Returns a triplet tuple similar to the return value of :erlang.now/0 using a struct Bson.UTC

Functions

from_now(arg1)

Returns a struct Bson.UTC using a tuple given by :erlang.now/0

iex> Bson.UTC.from_now({1410, 473634, 449058})
%Bson.UTC{ms: 1410473634449}
Source
to_now(utc)

Returns a triplet tuple similar to the return value of :erlang.now/0 using a struct Bson.UTC

iex> Bson.UTC.to_now(%Bson.UTC{ms: 1410473634449})
{1410, 473634, 449000}
Source