def sitemap_static_lastmod(my_controller_name = nil, my_action_name = nil)
      value = nil

      unless my_controller_name.blank? || my_action_name.blank?

        unless my_controller_name.blank?
          my_controller_name = my_controller_name.underscore
          my_controller_name = my_controller_name.gsub("/", ".")
        end

        begin

          value = I18n.t("#{my_controller_name.downcase}.#{my_action_name.downcase}", default: "", locale: :sitemap)

        rescue Exception => e
          DuckMap.logger.exception(e)
        end

        value = value.blank? ? nil : LastMod.to_date(value)

      end

      return value
    end
def sitemap_static_lastmod(my_controller_name = nil, my_action_name = nil)
      value = nil

      unless my_controller_name.blank? || my_action_name.blank?

        unless my_controller_name.blank?
          my_controller_name = my_controller_name.underscore
          my_controller_name = my_controller_name.gsub("/", ".")
        end

        begin

          value = I18n.t("#{my_controller_name.downcase}.#{my_action_name.downcase}", default: "", locale: :sitemap)

        rescue Exception => e
          DuckMap.logger.exception(e)
        end

        value = value.blank? ? nil : LastMod.to_date(value)

      end

      return value
    end
Returns the date / time value from config/locale/sitemap.yml associated with the current controller / action.
 The static date/times are actual timestamps extracted from the date of the view on disk and from a .git repository if used.
 Be sure to run the generator or rake task: duck_map:sync to populate the locale file at: config/locale/sitemap.yml
 @return [DateTime] The timestamp associated with the controller / action.