Module: TestBench::Telemetry::Controls::Time::ISO8601

Defined in:
lib/test_bench/telemetry/controls/time.rb

Class Method Summary collapse

Class Method Details

.example(time = nil, **arguments) ⇒ Object



65
66
67
68
69
# File 'lib/test_bench/telemetry/controls/time.rb', line 65

def self.example(time=nil, **arguments)
  time ||= Time.example(**arguments)

  time.strftime('%Y-%m-%dT%H:%M:%S.%NZ')
end

.other_exampleObject



71
72
73
74
75
# File 'lib/test_bench/telemetry/controls/time.rb', line 71

def self.other_example
  time = Time.other_example

  example(time)
end

.randomObject



77
78
79
80
81
# File 'lib/test_bench/telemetry/controls/time.rb', line 77

def self.random
  time = Time.random

  example(time)
end