|
Previous Page |
Solar_View_Helper_Time |
Next Page |
time()
public
string
time (
string $spec,
string $format default NULL
)
Outputs a formatted time using date() format codes.
Parameters
- (string)
$spec: Any date-time string suitable for strtotime(). - (string)
$format: An optional custom date() formatting string; null by default.
Returns
- (string) The formatted date string.
Description
Outputs a formatted time using date() format codes.