Module riak_core_format

Functions for formatting data.

Description

Functions for formatting data.

Function Index

epoch_to_datetime/1Convert a folsom_utils:now_epoch() to a universal datetime.
fmt/2Created a string Str based on the format string FmtStr and list of args Args.
human_size_fmt/2Create a human friendly string Str for number of bytes Bytes and format based on format string Fmt.
human_time_fmt/2Create a human friendly string Str for the given time in microseconds Micros.

Function Details

epoch_to_datetime/1

epoch_to_datetime(S::non_neg_integer()) -> calendar:datetime()

Convert a folsom_utils:now_epoch() to a universal datetime

fmt/2

fmt(FmtStr::string(), Args::list()) -> Str::string()

Created a string Str based on the format string FmtStr and list of args Args.

human_size_fmt/2

human_size_fmt(Fmt::string(), Bytes::number()) -> string()

Create a human friendly string Str for number of bytes Bytes and format based on format string Fmt.

human_time_fmt/2

human_time_fmt(Fmt::string(), Micros::non_neg_integer()) -> Str::string()

Create a human friendly string Str for the given time in microseconds Micros. Format according to format string Fmt.


Generated by EDoc