Method: AwsLogs::Since#iso8601_seconds
- Defined in:
- lib/aws_logs/since.rb
#iso8601_seconds ⇒ Object
28 29 30 31 |
# File 'lib/aws_logs/since.rb', line 28 def iso8601_seconds # https://stackoverflow.com/questions/3775544/how-do-you-convert-an-iso-8601-date-to-a-unix-timestamp-in-ruby Time.iso8601(@str.sub(/ /,'T')).to_i end |