Helper for a formatted timestamp using » date() format codes.

Default format is "Y-m-d H:i:s".

Note that this helper is timezone-aware. For example, if all your input timestamps are in the GMT timezone, but you want to show them as being in the America/Chicago timezone, you can set these config keys:

$config['Solar_View_Helper_Timestamp']['tz_origin'] = 'GMT';
$config['Solar_View_Helper_Timestamp']['tz_output'] = 'America/Chicago';

Then when you call call the timestamp helper, it will move the input time back by 5 hours (or by 6, during daylight savings time) and output that instead of the GMT time.

This works for arbitrary timezones, so you can have your input times in any timezone and convert them to any other timezone.

Note that Solar_View_Helper_Date and Solar_View_Helper_Time descend from this helper, so you only need to set the timezone configs in one place (i.e., for this helper).


This class is part of the Solar_View_Helper package.


Configuration Keys



Public Properties

The Solar_View_Helper_Timestamp class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_View_Helper_Timestamp class.

You can also view the list of all public, protected, and private methods.




Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().


Convenience method for getting a dump the whole object, or one of its properties, or an external variable.


Looks up class-specific locale strings based on a key.


Outputs a formatted timestamp using » date() format codes.