0
-FIX (describe your package)
0
-* FIX (list of features or problems)
0
+Timely adds some convenience methods to Date and Time to easily create times on specific dates.
0
- FIX (code sample of usage)
0
-* FIX (list of requirements)
0
+ some_date = Date.today - 5 # => 2008-05-03
0
+ some_date.at_time(3, 5, 13) # => Sat May 03 03:05:13 -0500 2008
0
+ # arguments are optional
0
+ some_date.at_time(13) # => Sat May 03 13:00:00 -0500 2008
0
+ some_time = Time.now - 345678 # => Sun May 04 13:40:22 -0500 2008
0
+ some_time.on_date(2001, 6, 18) # => Mon Jun 18 13:40:22 -0500 2001
0
+ # if you have objects corresponding to the times/dates you want
0
+ some_time.on_date(some_date) # => Sat May 03 13:40:22 -0500 2008
0
+ some_date.at_time(some_time) # => Sat May 03 13:40:22 -0500 2008
0
+ # if you like typing less
0
+ some_time.on(some_date) # => Sat May 03 13:40:22 -0500 2008
0
+ some_date.at(some_time) # => Sat May 03 13:40:22 -0500 2008
0
-* FIX (sudo gem install, anything else)
0
-Permission is hereby granted, free of charge, to any person obtaining
0
-a copy of this software and associated documentation files (the
0
-'Software'), to deal in the Software without restriction, including
0
-without limitation the rights to use, copy, modify, merge, publish,
0
-distribute, sublicense, and/or sell copies of the Software, and to
0
-permit persons to whom the Software is furnished to do so, subject to
0
-the following conditions:
0
-The above copyright notice and this permission notice shall be
0
-included in all copies or substantial portions of the Software.
0
+* sudo gem install timely
0
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
0
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
0
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0
\ No newline at end of file
Comments
No one has commented yet.