[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7860":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":28,"discoverSource":29},7860,"chronic","mojombo\u002Fchronic","mojombo","Chronic is a pure Ruby natural language date parser.","http:\u002F\u002Finjekt.github.com\u002Fchronic",null,"Ruby",3257,452,67,136,0,1,2,60.67,"MIT License",false,"master",true,[],"2026-06-12 04:00:36","Chronic\n=======\n\nChronic is a natural language date\u002Ftime parser written in pure Ruby. See below\nfor the wide variety of formats Chronic will parse.\n\n## Installation\n\n```\n$ gem install chronic\n```\n\n## Usage\n\n```ruby\nrequire 'chronic'\n\nTime.now   #=> Sun Aug 27 23:18:25 PDT 2006\n\nChronic.parse('tomorrow')\n  #=> Mon Aug 28 12:00:00 PDT 2006\n\nChronic.parse('monday', :context => :past)\n  #=> Mon Aug 21 12:00:00 PDT 2006\n\nChronic.parse('this tuesday 5:00')\n  #=> Tue Aug 29 17:00:00 PDT 2006\n\nChronic.parse('this tuesday 5:00', :ambiguous_time_range => :none)\n  #=> Tue Aug 29 05:00:00 PDT 2006\n\nChronic.parse('may 27th', :now => Time.local(2000, 1, 1))\n  #=> Sat May 27 12:00:00 PDT 2000\n\nChronic.parse('may 27th', :guess => false)\n  #=> Sun May 27 00:00:00 PDT 2007..Mon May 28 00:00:00 PDT 2007\n\nChronic.parse('6\u002F4\u002F2012', :endian_precedence => :little)\n  #=> Fri Apr 06 00:00:00 PDT 2012\n\nChronic.parse('INVALID DATE')\n  #=> nil\n```\n\nIf the parser can find a date or time, either a Time or Chronic::Span\nwill be returned (depending on the value of `:guess`). If no\ndate or time can be found, `nil` will be returned.\n\nSee `Chronic.parse` for detailed usage instructions.\n\n## Examples\n\nChronic can parse a huge variety of date and time formats. Following is a\nsmall sample of strings that will be properly parsed. Parsing is case\ninsensitive and will handle common abbreviations and misspellings.\n\n#### Simple\n\n* thursday\n* november\n* summer\n* friday 13:00\n* mon 2:35\n* 4pm\n* 10 to 8\n* 10 past 2\n* half past 2\n* 6 in the morning\n* friday 1pm\n* sat 7 in the evening\n* yesterday\n* today\n* tomorrow\n* last week\n* next week\n* this tuesday\n* next month\n* last winter\n* this morning\n* last night\n* this second\n* yesterday at 4:00\n* last friday at 20:00\n* last week tuesday\n* tomorrow at 6:45pm\n* afternoon yesterday\n* thursday last week\n\n#### Complex\n\n* 3 years ago\n* a year ago\n* 5 months before now\n* 7 hours ago\n* 7 days from now\n* 1 week hence\n* in 3 hours\n* 1 year ago tomorrow\n* 3 months ago saturday at 5:00 pm\n* 7 hours before tomorrow at noon\n* 3rd wednesday in november\n* 3rd month next year\n* 3rd thursday this september\n* 4th day last week\n* fourteenth of june 2010 at eleven o'clock in the evening\n* may seventh '97 at three in the morning\n\n#### Specific Dates\n\n* January 5\n* 22nd of june\n* 5th may 2017\n* February twenty first\n* dec 25\n* may 27th\n* October 2006\n* oct 06\n* jan 3 2010\n* february 14, 2004\n* february 14th, 2004\n* 3 jan 2000\n* 17 april 85\n* 5\u002F27\u002F1979\n* 27\u002F5\u002F1979\n* 05\u002F06\n* 1979-05-27\n* Friday\n* 5\n* 4:00\n* 17:00\n* 0800\n\n#### Specific Times (many of the above with an added time)\n\n* January 5 at 7pm\n* 22nd of june at 8am\n* 1979-05-27 05:00:00\n* 03\u002F01\u002F2012 07:25:09.234567\n* 2013-08-01T19:30:00.345-07:00\n* 2013-08-01T19:30:00.34-07:00\n* etc\n\n\n## Time Zones\n\nChronic allows you to set which Time class to use when constructing times. By\ndefault, the built in Ruby time class creates times in your system's local\ntime zone. You can set this to something like ActiveSupport's\n[TimeZone](http:\u002F\u002Fapi.rubyonrails.org\u002Fclasses\u002FActiveSupport\u002FTimeZone.html)\nclass to get full time zone support.\n\n```\n>> Time.zone = \"UTC\"\n>> Chronic.time_class = Time.zone\n>> Chronic.parse(\"June 15 2006 at 5:45 AM\")\n=> Thu, 15 Jun 2006 05:45:00 UTC +00:00\n```\n\n## Limitations\n\nChronic uses Ruby's built in Time class for all time storage and computation.\nBecause of this, only times that the Time class can handle will be properly\nparsed. Parsing for times outside of this range will simply return `nil`.\nSupport for a wider range of times is planned for a future release.\n\n\n## Contribute\n\nIf you'd like to hack on Chronic, start by forking the repo on GitHub:\n\nhttps:\u002F\u002Fgithub.com\u002Fmojombo\u002Fchronic\n\nThe best way to get your changes merged back into core is as follows:\n\n1. Clone down your fork\n1. Create a thoughtfully named topic branch to contain your change\n1. Install the development dependencies by running `bundle install`\n1. Hack away\n1. Add tests and make sure everything still passes by running `bundle exec rake`\n1. Ensure your tests pass in multiple timezones. ie `TZ=utc bundle exec rake` `TZ=BST bundle exec rake`\n1. If you are adding new functionality, document it in the README\n1. Do not change the version number, we will do that on our end\n1. If necessary, rebase your commits into logical chunks, without errors\n1. Push the branch up to GitHub\n1. Send a pull request for your branch\n","Chronic 是一个用纯 Ruby 编写的自然语言日期\u002F时间解析器。它能够解析多种自然语言格式的日期和时间字符串，并将其转换为 Ruby 的 Time 对象或 Chronic::Span 对象。项目支持广泛的日期时间表达方式，包括简单日期、复杂相对时间描述以及特定日期时间组合等，同时提供了灵活的解析选项以适应不同的上下文需求。适用于需要处理用户输入日期时间的应用场景，如日程管理工具、事件提醒系统等，能够极大提升用户体验。","2026-06-11 03:14:46","top_language"]