php8.5
Home/ Manual/ rrd / functions/ rrd_first

rrd_first

PHP function Edit on GitHub ✎

(PECL rrd >= 0.9.0)

Gets the timestamp of the first sample from rrd file

Description

rrd_first(string $file, int $raaindex = 0): int

Returns the first data sample from the specified RRA of the RRD file.

Parameters

file

RRD database file name.

raaindex

The index number of the RRA that is to be examined. Default value is 0.

Return Values

Integer number of unix timestamp,Falseforfailure.

Source: reference/rrd/functions/rrd-first.xml · from the official PHP manual (php/doc-en)