bitwalker/timex

Most functions are incorrect for calendars other than Calendar.ISO

开放

#449 创建于 2018年7月30日

 (1 条评论) (0 个反应) (0 位负责人)Elixir (406 个派生)batch import
feature/enhancementhelp wantedlevel:advanced

仓库指标

星标
 (1,807 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Most functions in Timex manipulate the Elixir data structures directly. In doing so, they assume a lot about the underlying calendar - in most cases the functions would just not work for anything other than Calendar.ISO. The prime example would be Timex.shift/2.

Timex should either amend those functions to be correct in case they are called with other calendars, or pattern match on the value and document the functions to only work with Calendar.ISO.

贡献者指南