Class: SecureNative::Utils::DateUtils
- Inherits:
-
Object
- Object
- SecureNative::Utils::DateUtils
- Defined in:
- lib/securenative/utils/date_utils.rb
Class Method Summary collapse
Class Method Details
.to_timestamp(date) ⇒ Object
6 7 8 9 10 |
# File 'lib/securenative/utils/date_utils.rb', line 6 def self.(date) return Time.now.utc.iso8601 if date.nil? Time.parse(date).iso8601 end |