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



44
45
46
47
48
# File 'lib/test_bench/telemetry/controls/time.rb', line 44

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

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

.other_exampleObject



50
51
52
53
54
# File 'lib/test_bench/telemetry/controls/time.rb', line 50

def self.other_example
  time = Time.other_example

  example(time)
end

.randomObject



56
57
58
59
60
# File 'lib/test_bench/telemetry/controls/time.rb', line 56

def self.random
  time = Time.random

  example(time)
end