Popularity
3.5
Stable
Activity
0.0
Stable
29
3
1
Monthly Downloads: 2
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.
-
Crontab
:alarm_clock: Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates. -
Ex_Cldr_Dates_Times
Date & times formatting functions for the Common Locale Data Repository (CLDR) package https://github.com/elixir-cldr/cldr -
jalaali
Jalaali (also known as Jalali, Persian, Khorshidi, Shamsi) calendar implementation in Elixir.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
Promo
www.saashub.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}