Cloud Spanner Client - Class Interval (1.101.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

static::fromMonthsDaysNanos

Creates an Interval from months, days and nanoseconds given.

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

static::fromMonths

Creates an Interval from the months given.

Parameter
Name
Description
months
int
Returns
Type
Description

static::fromDays

Creates an Interval from the days given.

Parameter
Name
Description
days
int
Returns
Type
Description

static::fromSeconds

Creates an Interval from the seconds given.

Parameter
Name
Description
seconds
float
Returns
Type
Description

static::fromMilliseconds

Creates an Interval from the milliseconds given.

Parameter
Name
Description
milliseconds
float
Returns
Type
Description

static::fromMicroseconds

Creates an Interval from the microseconds given.

Parameter
Name
Description
microseconds
float
Returns
Type
Description

static::fromNanoseconds

Creates an Interval from the nanoseconds given.

Parameter
Name
Description
nanoseconds
float
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: