View Source Weather.DateUtils (Weather v0.3.7)

Provides date display utilities.

Summary

Functions

Returns the time specific to the hour, displayed in 12-hour or 24-hour format.

Returns the time specific to the minute, displayed in 12-hour or 24-hour format.

Returns the time specific to the minute, displayed in 12-hour or 24-hour format, with the day.

Functions

Link to this function

time_by_hour(unix_time, timezone, opts \\ Weather.Opts.new())

View Source
@spec time_by_hour(integer(), String.t(), Weather.Opts.t()) :: String.t()

Returns the time specific to the hour, displayed in 12-hour or 24-hour format.

Link to this function

time_by_minute(unix_time, timezone, opts \\ Weather.Opts.new())

View Source
@spec time_by_minute(integer(), String.t(), Weather.Opts.t()) :: String.t()

Returns the time specific to the minute, displayed in 12-hour or 24-hour format.

Link to this function

time_by_minute_with_day(unix_time, timezone, opts \\ Weather.Opts.new())

View Source
@spec time_by_minute_with_day(integer(), String.t(), Weather.Opts.t()) :: String.t()

Returns the time specific to the minute, displayed in 12-hour or 24-hour format, with the day.