Popularity
3.8
Declining
Activity
0.0
Stable
29
2
1
Monthly Downloads: 31
Programming language: Elixir
License: Apache License 2.0
Tags:
Date And Time
Latest version: v0.1.0
moment alternatives and similar packages
Based on the "Date and Time" category.
Alternatively, view moment alternatives based on common mentions on social networks and blogs.
-
filtrex
A library for performing and validating complex SQL-like filters from a client (e.g. smart filters).
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of moment or a related project?
README
Moment
Moment is designed to bring easy date and time handling to Elixir. Its semantic (notably for formatting/parsing) is inspired by Moment.js.
Examples
iex(1)> Moment.now()
%Moment{day: 11, hour: 15, minute: 8, month: 9, nanosecond: 228523000,
offset: 540, second: 13, year: 2014}
iex(2)> Moment.utcnow()
%Moment{day: 11, hour: 6, minute: 8, month: 9, nanosecond: 84602000, offset: 0,
second: 17, year: 2014}
iex(3)> Moment.format(Moment.now(), "YYYY/MM/DD HH:mm")
"2014/09/11 15:08"
iex(4)> Moment.parse!("2014/09/11 15:08", "YYYY/MM/DD HH:mm")
%Moment{day: 11, hour: 15, minute: 8, month: 9, nanosecond: 0, offset: 540,
second: 0, year: 2014}