Cloud Spanner Client - Class Interval (1.100.0)

Namespace

Google \ Cloud \ Spanner

Methods

__toString

static::parse

Parses an ISO8601 duration string into an Interval type.

The format for the string should be in the format: P[n]Y[n]M[n]DT[n]H[n]M[n[.fraction]]S where n is an integer.

Parameter
Name Description
text string

The ISO8601 duration string

Returns
Type Description
Interval

static::fromMonthsDaysNanos

Creates an Interval from months, days and nanoseconds given.

Parameters
Name Description
months int
days int
nanoseconds float
Returns
Type Description
Interval

static::fromMonths

Creates an Interval from the months given.

Parameter
Name Description
months int
Returns
Type Description
Interval

static::fromDays

Creates an Interval from the days given.

Parameter
Name Description
days int
Returns
Type Description
Interval

static::fromSeconds

Creates an Interval from the seconds given.

Parameter
Name Description
seconds float
Returns
Type Description
Interval

static::fromMilliseconds

Creates an Interval from the milliseconds given.

Parameter
Name Description
milliseconds float
Returns
Type Description
Interval

static::fromMicroseconds

Creates an Interval from the microseconds given.

Parameter
Name Description
microseconds float
Returns
Type Description
Interval

static::fromNanoseconds

Creates an Interval from the nanoseconds given.

Parameter
Name Description
nanoseconds float
Returns
Type Description
Interval