dates_from_string:Ruby gem,在文本中查找日期

时间:2021-05-22 08:24:05
【文件属性】:
文件名称:dates_from_string:Ruby gem,在文本中查找日期
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-22 08:24:05
Ruby DatesFromString 在文本中查找日期的灵活解决方案。 解析文本后,gem返回日期的灵活结构,该结构允许您根据自己的逻辑使用下一个日期类型的距离和日期之间的关键字来获取日期。 宝石还支持在电子邮件中查找年份并在结构中查找日期。 安装 将此行添加到您的应用程序的Gemfile中: gem 'dates_from_string' 然后执行: $ bundle 或将其自己安装为: $ gem install dates_from_string 用法 text = "1988-1990 and 2000 and one more date 04.04.2015" # parsing text key_words = [ 'between' , '-' ] # you can defin
【文件预览】:
dates_from_string-master
----.travis.yml(73B)
----bin()
--------console(342B)
--------setup(115B)
----Rakefile(118B)
----Gemfile(102B)
----.rspec(31B)
----spec()
--------dates_from_string_spec.rb(24KB)
--------spec_helper.rb(87B)
----.gitignore(87B)
----lib()
--------dates_from_string()
--------dates_from_string.rb(6KB)
----CODE_OF_CONDUCT.md(1KB)
----README.md(6KB)
----dates_from_string.gemspec(1KB)
----LICENSE.txt(1KB)

网友评论