Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include fractions of a second. Fix issue #19 #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Holek
Copy link

@Holek Holek commented Jan 8, 2013

No description provided.

@@ -25,7 +25,7 @@ class << DateTime
alias_method :now_without_delorean, :now

def now(sg=Date::ITALY)
self.iso8601( Time.now.to_datetime.iso8601, sg )
self.iso8601( Time.now.to_datetime.iso8601(3), sg )
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be great to have a test for this one but 👍

@tagliala
Copy link

I came up with this test

    datetime_with_milliseconds = DateTime.now.strftime('%L')
    expect( lambda {
      Timeout::timeout(1) do
        while DateTime.now.strftime('%L') == datetime_with_milliseconds do; ; end;
      end
    }).to_not raise_error

Is this gem still maintained? I'm going to submit a huge pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants