Class: Time

Inherits:
Object
  • Object
show all
Includes:
Everythingrb::StringQuotable
Defined in:
lib/everythingrb/time.rb

Overview

Extensions to Ruby’s core Time class

Provides:

  • #in_quotes, #with_quotes: Wrap time representations in quotes

Examples:

require "everythingrb/time"

Time.new(2025, 5, 3).in_quotes  # => "\"2025-05-03 00:00:00 +0000\""

# Useful in formatted output:
"Event created at #{Time.now.in_quotes}"

Method Summary

Methods included from Everythingrb::StringQuotable

#in_quotes