Previous Page
locale()

Solar_View_Helper_Timestamp
timestamp()

Next Class
Solar_View_Helper_Title

timestamp()

public string timestamp ( string $spec, string $format default NULL )

Outputs a formatted timestamp using date() format codes.

Parameters

  • (string) $spec: Any date-time string suitable for strtotime().
  • (string) $format: An optional custom date() formatting string.

Returns

  • (string) The formatted date string.

Description

Outputs a formatted timestamp using date() format codes.