Which Time Is It?
summary
Clear taxonomy: moments, durations, time of day and concrete rules for operators so adding two timestamps is flagged as nonsense while Time - Time yields a duration. Demos include ActiveSupport’s one.day vs 1.day.ago distinction, designing a time-of-day class as a single counter (microseconds since midnight), and a sync project that aligns Unix millisecond timestamps with video seconds revealing unit bugs and how fixes export correct segments. Watch if those concrete fixes matter.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:07Time meanings in programming
- 3:14Ruby's time classes
- 7:11Math operations on time
- 8:14Plus operator for time
- 12:08Minus operator duality
- 16:04Time algebra: moments and durations
- 17:47Time of day introduction
- 20:16Gems for time of day
- 23:48Time representation pitfalls
- 26:20Storing time as counter
- 28:50Time of day in Ruby
- 30:55Time sync project
- 34:09Key takeaways








