lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.3 vs lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.4

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2006-2009, John Mettraux, jmettraux@gmail.com +# Copyright (c) 2006-2010, John Mettraux, jmettraux@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -95,9 +95,10 @@ # # Returns the next time that this cron line is supposed to 'fire' # # This is raw, 3 secs to iterate over 1 year on my macbook :( brutal. + # (Well, I was wrong, takes 0.001 sec on 1.8.7 and 1.9.1) # # This method accepts an optional Time parameter. It's the starting point # for the 'search'. By default, it's Time.now # # Note that the time instance returned will be in the same time zone that