View Source SqueezeWeb.FormatHelpers (OpenPace v0.0.1)

@moduledoc false This module defines helpers common running related formatting like pace, distance, duration.

Link to this section Summary

Link to this section Functions

Link to this function

challenge_type(challenge_type)

View Source
Link to this function

format_date_with_time(start_at)

View Source
Link to this function

format_distance(distance, user_prefs)

View Source

Formats a duration like a stopwatch

examples

Examples

iex> format_duration(duration) "3:00:00"

Link to this function

format_elevation_gain(elevation_gain, user_prefs)

View Source
Link to this function

format_ordinal_date(date)

View Source
Link to this function

format_pace(map, user_prefs)

View Source
Link to this function

format_score(challenge, amount)

View Source
Link to this function

format_speed(speed, user_prefs)

View Source
Link to this function

relative_date(user, date)

View Source