README.txt in rufus-scheduler-1.0.2 vs README.txt in rufus-scheduler-1.0.3
- old
+ new
@@ -15,10 +15,25 @@
http://rubyforge.org/frs/?group_id=4812
== usage
-See the Rufus::Scheduler class rdoc itself or the original OpenWFEru scheduler documentation at http://openwferu.rubyforge.org/scheduler.html
+For all the scheduling related information, see the Rufus::Scheduler class rdoc itself or the original OpenWFEru scheduler documentation at http://openwferu.rubyforge.org/scheduler.html
+
+Apart from scheduling, There are also two interesting methods in this gem, they are named parse_time_string and to_time_string :
+
+ require 'rubygems'
+ require 'rufus/otime' # gem 'rufus_scheduler'
+
+ Rufus.parse_time_string "500" # => 0.5
+ Rufus.parse_time_string "1000" # => 1.0
+ Rufus.parse_time_string "1h" # => 3600.0
+ Rufus.parse_time_string "1h10s" # => 3610.0
+ Rufus.parse_time_string "1w2d" # => 777600.0
+
+ Rufus.to_time_string 60 # => '1m'
+ Rufus.to_time_string 3661 # => '1h1m1s'
+ Rufus.to_time_string 7 * 24 * 3600 # => '1w'
== dependencies
None.