This file is indexed.

/usr/lib/ruby/vendor_ruby/fog/core/time.rb is in ruby-fog-core 1.45.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require "time"

module Fog
  class Time < ::Time
    DAYS = %w(Sun Mon Tue Wed Thu Fri Sat)
    MONTHS = %w(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)

    def self.now
      at(::Time.now - offset)
    end

    def self.now=(new_now)
      old_now = ::Time.now
      @offset = old_now - new_now
      new_now
    end

    def self.offset
      @offset ||= 0
    end

    def to_date_header
      utc.strftime("#{DAYS[utc.wday]}, %d #{MONTHS[utc.month - 1]} %Y %H:%M:%S +0000")
    end

    def to_iso8601_basic
      utc.strftime("%Y%m%dT%H%M%SZ")
    end
  end
end