backpack v0.3.0 Backpack.Moment
Link to this section Summary
Link to this section Functions
Link to this function
add(term, opts)
Link to this function
ago(term, seconds_or_unit \\ :nanoseconds)
Link to this function
beginning_of_day(term)
Link to this function
beginning_of_month(term)
Link to this function
beginning_of_quarter(term)
Link to this function
beginning_of_week(term)
Link to this function
beginning_of_year(term)
Link to this function
day(term, unit \\ :nanoseconds)
Link to this function
day_ago(term, days)
Link to this function
day_from_now(term, days)
Link to this function
day_of_week(term)
Link to this function
days(term, unit \\ :nanoseconds)
Link to this function
days_ago(term, days)
Link to this function
days_from_now(term, days)
Link to this function
end_of_day(term)
Link to this function
end_of_month(term)
Link to this function
end_of_quarter(term)
Link to this function
end_of_week(term)
Link to this function
end_of_year(term)
Link to this function
from_now(term, seconds_or_unit \\ :nanoseconds)
Link to this function
from_unix(timestamp, unit \\ :nanoseconds)
See DateTime.from_unix/2
.
Link to this function
from_unix!(timestamp, unit \\ :nanoseconds)
Link to this function
future?(term)
Link to this function
hour(term, unit \\ :nanoseconds)
Link to this function
hour_ago(term, hours)
Link to this function
hour_from_now(term, hours)
Link to this function
hours(term, unit \\ :nanoseconds)
Link to this function
hours_ago(term, hours)
Link to this function
hours_from_now(term, hours)
Link to this function
last_month(term)
Link to this function
last_week(term)
Link to this function
last_year(term)
Link to this function
minute(term, unit \\ :nanoseconds)
Link to this function
minute_ago(term, minutes)
Link to this function
minute_from_now(term, minutes)
Link to this function
minutes(term, unit \\ :nanoseconds)
Link to this function
minutes_ago(term, minutes)
Link to this function
minutes_from_now(term, minutes)
Link to this function
month(term, unit \\ :nanoseconds)
Link to this function
month_ago(term, months)
Link to this function
month_from_now(term, months)
Link to this function
months(term, unit \\ :nanoseconds)
Link to this function
months_ago(term, months)
Link to this function
months_from_now(term, months)
Link to this function
next_month(term)
Link to this function
next_week(term)
Link to this function
next_year(term)
Link to this function
past?(term)
Link to this function
quarter(term)
Link to this function
second(term, unit \\ :nanoseconds)
Link to this function
seconds(term, unit \\ :nanoseconds)
Link to this function
strftime(term, format, lang \\ :en)
Link to this function
strftime!(term, format, lang \\ :en)
Link to this function
today?(term)
Link to this function
tomorrow(term)
Link to this function
week(term, unit \\ :nanoseconds)
Link to this function
week_ago(term, weeks)
Link to this function
week_from_now(term, weeks)
Link to this function
weeks(term, unit \\ :nanoseconds)
Link to this function
weeks_ago(term, weeks)
Link to this function
weeks_from_now(term, weeks)
Link to this function
year(term, unit \\ :nanoseconds)
Link to this function
year_ago(term, years)
Link to this function
year_from_now(term, years)
Link to this function
years(term, unit \\ :nanoseconds)
Link to this function
years_ago(term, years)
Link to this function
years_from_now(term, years)
Link to this function
yesterday(term)