Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Time Types

now = Time.utc
puts typeof(now)
puts now

monotonic = Time.monotonic
puts typeof(monotonic)
puts monotonic

timespan = Time::Span.new(days: 1)
puts typeof(timespan)
puts timespan
Time
2021-06-11 10:11:22 UTC
Time::Span
27.01:20:51.929165992
Time::Span
1.00:00:00