Popularity
3.7
Stable
Activity
0.0
Stable
28
3
1
Monthly Downloads: 0
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 filters from a client (e.g. smart filters) -
Crontab
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. -
timex_interval
A date/time interval library for Elixir projects, based on Timex. -
block_timer
Macros to use :timer.apply_after and :timer.apply_interval with a block -
emojiclock
An Elixir module for returning an emoji clock for a given hour -
Calixir
Calixir is a port of the Lisp calendar software calendrica-4.0 to Elixir. -
japan_municipality_key
Elixir Library for Japan municipality key converting
TestGPT | Generating meaningful tests for busy devs
Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.
Promo
codium.ai
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}