Format time as iso8601
timestamp = '2001-04-17T19:23:17.201Z' puts t = Time.iso8601(timestamp) # => Tue Apr 17 19:23:17 UTC 2001 puts t.sec # => 17 puts t.tv_usec # => 201000