Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

timezone info in the readme

  • Loading branch information...
commit b593ed54d0196dd44d272d7f8b0c97c4e018142a 1 parent 9979458
@technoweenie technoweenie authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.txt
12 README.txt
@@ -127,12 +127,20 @@ Specific Times (many of the above with an added time)
1979-05-27 05:00:00
+Chronic allows you to set which Time class to use when constructing times. By default, the built in Ruby time class creates times in your system's
+local time zone. You can set this to something like ActiveSupport's TimeZone class to get full time zone support.
+ >> = "UTC"
+ >> Chronic.time_class =
+ >> Chronic.parse("June 15 2006 at 5:45 AM")
+ => Thu, 15 Jun 2006 05:45:00 UTC +00:00
Chronic uses Ruby's built in Time class for all time storage and computation. Because of this, only times that the Time class can handle will be properly parsed. Parsing for times outside of this range will simply return nil. Support for a wider range of times is planned for a future release.
-Time zones other than the local one are not currently supported. Support for other time zones is planned for a future release.
(The MIT License)
Please sign in to comment.
Something went wrong with that request. Please try again.