TimeConverter

Constants

Methods

.call

+ show/hide code

.convert_type

+ show/hide code

.db_type

+ show/hide code
.primitive_type

ActiveAttr, which assists with property management, does not recognize Time as a valid type. We tell it to interpret it as Integer, as it will be when saved to the database.

+ show/hide code
.to_db

Converts the given DateTime (UTC) value to an Integer. Only utc times are supported !

+ show/hide code

.to_ruby

+ show/hide code