class Pupmin::Util

Utilities/helpers for various things

Public Class Methods

make_timestamp(offset = 0) click to toggle source

PuppetDB seems to use a timestamp that isn't quite standard, so this

takes an offset, and creates the time used in reports
# File lib/pupmin/util.rb, line 6
def self.make_timestamp(offset = 0)
  current_time = Time.new.utc
  adjusted_time = current_time - offset
  adjusted_time.strftime('%FT%TZ')
end