SmartLogic Logo (443) 451-3001

The SmartLogic Blog

SmartLogic is a web and mobile product development studio based in Baltimore. Contact us for help building your product or visit our website to learn more about what we do.

Timecop 0.3.4 Released

December 7th, 2009 by

Timecop 0.3.4 has just been released. To install simply run: gem install timecop.

Timecop is a RubyGem providing “time travel” and “time freezing” capabilities, making it dead simple to test time-dependent code. It provides a unified method to mock,, and in a single call.

Documentation is hosted at RubyForge. The source code is hosted at GitHub.

Updates include:


  • Fix various timezone-related issues. Notably, when traveling to a DateTime
    instance specified in a non-local timezone, convert provided DateTime
    instance to a local instance and return that from
    Code contributed by Michaël Witrant [piglop]
  • Fix bug that would not allow Timecop to be used when Ruby’s ‘date’
    library had not been previously loaded.
    Code contributed by Tuomas Kareinen [tuomas]
  • Fix bug when traveling to a DateTime across a DST boundary that
    resulted in DateTime’s being off by an hour.
  • Migrate argument parsing into Timecop::TimeStackItem to reduce the
    responsibility of the Timecop class.
John Trupiano co-founded SmartLogic with Yair Flicker in May 2005 and was co-president through 2011. Check out his GitHub Projects or follow @jtrupiano on Twitter.

John Trupiano's posts