Module: Saru::Support::TimeConverter
- Included in:
- List::AvailableDate, List::UnlockedDate
- Defined in:
- lib/saru/support/time_converter.rb
Instance Method Summary collapse
Instance Method Details
#to_unix(date) ⇒ Object
7 8 9 |
# File 'lib/saru/support/time_converter.rb', line 7 def to_unix date [Date, DateTime].include?(date.class) ? date.strftime("%s").to_i : date end |