date_time_parser:将字符串解析为DateTime,NaiveDateTime,Date或Time https:hexdocs.pmdate_time_parser

时间:2021-02-05 07:34:20
【文件属性】:
文件名称:date_time_parser:将字符串解析为DateTime,NaiveDateTime,Date或Time https:hexdocs.pmdate_time_parser
文件大小:53KB
文件格式:ZIP
更新时间:2021-02-05 07:34:20
parser elixir datetime hacktoberfest ElixirElixir DateTimeParser DateTimeParser是字符串的标记生成器,如果未确定时区,日期或时间,则尝试将其解析为DateTime,NaiveDateTime。 您当前正在查看master分支。 文献资料 日期时间格式之间最大的歧义是ymd (年月日), mdy (月日年)还是dmy (日月年); 通过检查是否存在斜线或破折号可以解决此问题。 如果斜杠,那么它将首先尝试dmy 。 所有其他情况将使用国际格式ymd 。 有时,如果条件合适,如果月份是声调月份,它甚至可以用破折号来解析dmy (例如"Jan" )。 如果字符串仅包含数字,则我们将根据数字的数目尝试其他两个解析器:
【文件预览】:
date_time_parser-master
----mix.lock(7KB)
----.gitignore(597B)
----mix.exs(4KB)
----.dialyzer_ignore.exs(54B)
----LICENSE.md(1KB)
----bin()
--------release(456B)
----.tool-versions(46B)
----CONTRIBUTING.md(330B)
----.formatter.exs(97B)
----CODE_OF_CONDUCT.md(3KB)
----EXAMPLES.md(16KB)
----CHANGELOG.md(3KB)
----bench()
--------profile.exs(561B)
--------self.exs(828B)
--------rails.rb(1KB)
--------ruby.rb(993B)
----.github()
--------workflows()
----README.md(10KB)
----.credo.exs(6KB)
----config()
--------test.exs(15B)
--------config.exs(1KB)
----lib()
--------parse_error.ex(113B)
--------parser.ex(3KB)
--------formatters.ex(4KB)
--------parser()
--------combinators()
--------date_time_parser.ex(8KB)
----pages()
--------Future-UTC-DateTime.md(3KB)
----test()
--------date_time_parser_test.exs(30KB)
--------support()
--------test_helper.exs(332B)
--------fixture()

网友评论