Previous Page
_exception()

Solar_View_Helper_Timestamp
_process()

Next Page
apiVersion()

_process()

protected string _process ( string|int $spec, string $format )

Outputs a formatted timestamp using date() format codes.

Parameters

  • (string|int) $spec: Any date-time string suitable for strtotime(); if an integer, will be used as a Unix timestamp as-is.
  • (string) $format: An optional custom date() formatting string.

Returns

  • (string) The formatted date string.

Description

Outputs a formatted timestamp using date() format codes.