0.0
No commit activity in last 3 years
No release in over 3 years
To and from dates in a second
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

>= 2.0.1
>= 2.0.1

Runtime

~> 0.3.0
 Project Readme

virtual_date¶ ↑

To and from dates in a second

Details¶ ↑

Install¶ ↑

sudo gem install virtual_date

Example usage¶ ↑

class MyClass
  include VirtualDate

  attr_accessor :some_date
  act_as_virtual_date :some_date
end

obj = MyClass.bew
obj.some_date = Date.today

obj.some_date_str # => 2011-04-18
obj.some_date_str("%d/%m/%Y") # => 18/04/2011

Copyright © 2011 Túlio Ornelas. See LICENSE for details.