On Monday, July 14, 2014 9:37:19 AM UTC-7, Petr Kaleta wrote: > > Hi, > I am dealing with quite strange microseconds representation issue once > doing simple time condition? > Please have a look on the following gist (for better readability) > > https://gist.github.com/PetrKaleta/704639f9e9bf8798b815 > > Am I doing something wrong? >
This appears to be a floating point issue. Sequel uses Time#usec to get the microseconds: Time.at(1405341161.918000).usec # => 917999 I think on ruby 1.9+, it may be good to use Time#round with the appropriate precision, before trying to format the time. I'll try that soon. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
