Module: Datetimepicker
- Defined in:
- lib/datetimepicker/date_and_time_manipulator.rb,
lib/datetimepicker.rb,
lib/datetimepicker/engine.rb,
lib/datetimepicker/version.rb
Overview
Public: A simple structure for independently manipulating the date and time components of a TimeWithZone object, while maintining the the existing date and time information.
datetime - an instance of DateTime/Time/TimeWithZone. date_format - A String containing the strftime format for setting/getting
date component of datetime.
time_format - A String containing the strftime format for setting/getting
time component of datetime.
Examples
DateTimePicker.new(Post.first.created_at, "%Y/%m/%d", "%H:%M")
Defined Under Namespace
Classes: DateAndTimeManipulator, Engine
Constant Summary collapse
- VERSION =
"0.0.3"