addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [NYC-rb] [ANN] useful_duration 0.0.2

From: Jesse C.
Sent on: Sunday, July 7, 2013 4:02 PM

fun :^)

On Jul 7,[masked]:53 PM, "Stephen Schor" <[address removed]> wrote:
Finally - a useful way of measuring time in your applications.

Install and require the gem manually or through bundler.


    =>[masked]:25:56 -0400

    =>[masked]:10:45 -0400

  "I regret I have but #{86400.to_f/1.doctor_zhivago} in a day" 
    => "I regret I have but[masked] in a day" 

New In This Version

A DSL nice DSL to define custom durrations. (prezjordan)

require 'useful_duration'

include UsefulDuration

useful_duration :fortnights,[masked]

1.fortnight.from_now =>[masked]:47:37 -0400


This requires ActiveSupport to play nicely with ActiveSupport duration
It was written against[masked] and hasn't been regression tested against other versions.


Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Stephen Schor ([address removed]) from NYC.rb.
To learn more about Stephen Schor, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]

Our Sponsors

  • Pivotal Labs

    Provides the awesome event space we use every month!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy