Documentation

JsDate
in package
implements JsExpression

A JavaScript date expression.

A relative expression in days from the current date.

This useful for building dynamic dates within configurations that are cacheable.

Table of Contents

Interfaces

JsExpression
For use with Js::encode().

Properties

$date  : string

Methods

__construct()  : mixed
__toString()  : mixed
render()  : string
Render the expression as a string.

Properties

Methods

__construct()

public __construct([string $date = 'now' ]) : mixed
Parameters
$date : string = 'now'

__toString()

public __toString() : mixed
Tags
inheritdoc

render()

Render the expression as a string.

public render() : string
Tags
inheritdoc
Return values
string
On this page

Search results