This file is indexed.

/usr/include/leatherman/util/time.hpp is in libleatherman-dev 1.4.0+dfsg-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
31
32
33
34
35
36
/**
 * @file
 * Declares utility functions for dealing with time.
 */
#pragma once

#include <string>
#include <ctime>

namespace leatherman { namespace util {

    /**
     * Adds the specified expiry_minutes to the current time and returns
     * the related date time string in UTC format.
     * @return Returns an empty string in case it fails to allocate the buffer.
     */
    std::string get_expiry_datetime(int expiry_minutes = 1);

    /**
     * Gets the current time in ISO8601 format
     * @param modifier_in_secords Offset from the current time in seconds
     * @return Returns the current time plus the modifier
     */
    std::string get_ISO8601_time(unsigned int modifier_in_seconds = 0);

    /** @return Returns the current datetime string in the %Y%m%d_%H%M%S format */
    std::string get_date_time();

    /**
     * Turns a stored time into a local time with correction for timezones.
     *  @param stored_time The time to be converted.
     *  @param result The struct in which to store the local time.
     */
    void get_local_time(std::time_t* stored_time, std::tm* result);

}}  // namespace leatherman::util