![]() day ** (KeyError) key :day not found in: ~Tīut there is a catch: as you may have noticed, this struct only contains the time within a day, no day/month/year data is present.Ĭontrary to Time, a Date struct has info about the date, without any info about the time. ![]() It is easy to access parts of this struct: iex> t = ~T ~T iex> t. You can learn more about sigils in the lesson about sigils. ![]() Note that we have a sigil which can be used to create a Time struct as well: iex> ~T ~T Let’s start with getting the current time: iex> Time. ![]() Elixir has some modules which work with time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |