[Proposal] Date.today/1

39 views
Skip to first unread message

Anastasiya Dyachenko

unread,
Mar 18, 2021, 1:25:22 PM3/18/21
to elixir-lang-core
I'd like to propose adding `Date.today/1` function similar to the `DateTime.now/1`, which will take a timezone and return today's date according to the timezone:

Date.today("Etc/UTC") => ~D[2021-03-18]


Reply all
Reply to author
Forward
0 new messages