Module cloudi_timestamp

Timestamp operations

.

Copyright © 2015-2017 Michael Truog

Version: 1.7.2 Sep 12 2017 17:11:52 ------------------------------------------------------------------------

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

Timestamp operations

Data Types

time_unit()

time_unit() = second | millisecond | microsecond | nanosecond | native | perf_counter | pos_integer()

Function Index

convert/3

Convert between time units.

.
microseconds/0

Microseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00).
microseconds_monotonic/0

Microseconds since an undefined point in time, from the Erlang VM.

.
microseconds_os/0

Microseconds since an undefined point in time, from the hardware.

.
milliseconds/0

Milliseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00).
milliseconds_monotonic/0

Milliseconds since an undefined point in time, from the Erlang VM.

.
milliseconds_os/0

Milliseconds since an undefined point in time, from the hardware.

.
nanoseconds/0

Nanoseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00).
nanoseconds_monotonic/0

Nanoseconds since an undefined point in time, from the Erlang VM.

.
nanoseconds_os/0

Nanoseconds since an undefined point in time, from the hardware.

.
native/0

Native time units since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00).
native_monotonic/0

Native time units since an undefined point in time, from the Erlang VM.

.
native_os/0

Native time units since an undefined point in time, from the hardware.

.
seconds/0

Seconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00).
seconds_filter/3

Filter a list of seconds since the UNIX epoch..

The list is not ordered.
seconds_monotonic/0

Seconds since an undefined point in time, from the Erlang VM.

.
seconds_os/0

Seconds since an undefined point in time, from the hardware.

.
timestamp/0

Return an Erlang VM timestamp.

Not guaranteed to be strictly monotonically increasing (on Erlang >= 18.0).
uptime/0

The uptime of the Erlang node in seconds.

.
uptime/1

The uptime of the Erlang node.

.

Function Details

convert/3

convert(Time::integer(), FromUnit::time_unit(), ToUnit::time_unit()) -> integer()

Convert between time units.

microseconds/0

microseconds() -> non_neg_integer()

Microseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00)

microseconds_monotonic/0

microseconds_monotonic() -> integer()

Microseconds since an undefined point in time, from the Erlang VM.

microseconds_os/0

microseconds_os() -> non_neg_integer()

Microseconds since an undefined point in time, from the hardware.

milliseconds/0

milliseconds() -> non_neg_integer()

Milliseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00)

milliseconds_monotonic/0

milliseconds_monotonic() -> integer()

Milliseconds since an undefined point in time, from the Erlang VM.

milliseconds_os/0

milliseconds_os() -> non_neg_integer()

Milliseconds since an undefined point in time, from the hardware.

nanoseconds/0

nanoseconds() -> non_neg_integer()

Nanoseconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00)

nanoseconds_monotonic/0

nanoseconds_monotonic() -> integer()

Nanoseconds since an undefined point in time, from the Erlang VM.

nanoseconds_os/0

nanoseconds_os() -> non_neg_integer()

Nanoseconds since an undefined point in time, from the hardware.

native/0

native() -> integer()

Native time units since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00)

native_monotonic/0

native_monotonic() -> integer()

Native time units since an undefined point in time, from the Erlang VM.

native_os/0

native_os() -> integer()

Native time units since an undefined point in time, from the hardware.

seconds/0

seconds() -> non_neg_integer()

Seconds since the UNIX epoch.

(The UNIX epoch is 1970-01-01T00:00:00)

seconds_filter/3

seconds_filter(L::[non_neg_integer()], SecondsNow::non_neg_integer(), MaxPeriod::pos_integer()) -> {Count::non_neg_integer(), NewL::[non_neg_integer()]}

Filter a list of seconds since the UNIX epoch..

The list is not ordered.

seconds_monotonic/0

seconds_monotonic() -> integer()

Seconds since an undefined point in time, from the Erlang VM.

seconds_os/0

seconds_os() -> non_neg_integer()

Seconds since an undefined point in time, from the hardware.

timestamp/0

timestamp() -> erlang:timestamp()

Return an Erlang VM timestamp.

Not guaranteed to be strictly monotonically increasing (on Erlang >= 18.0).

uptime/0

uptime() -> integer()

The uptime of the Erlang node in seconds.

uptime/1

uptime(TimeUnit::second | millisecond | microsecond | nanosecond) -> integer()

The uptime of the Erlang node.


Generated by EDoc, Sep 12 2017, 17:11:52.