rb:time

Description

Renders the date and time in the user's time zone.


Attributes

required t int The time to display in epoch seconds.
optional tz string The time zone in which to display t. Acceptable formats include PHP's List of Supported Timezones and +/- formats such as Etc/GMT-7. (default value is loggedinuser's timezone)
preposition bool Indicates whether to automatically insert prepositions as appropriate into the time, where "at" prepends the time and "on" prepends the date if it appears. (default value is false)

 


<rb:time t="1180502413" tz="America/New_York" />

Notes

  • The time expands as needed. If t took place in the same day, only hour:minutes[am|pm] appears. If t is in the same year, Month Day hour:minutes[am|pm] appears. Otherwise, Month Day, Year hour:minutes[am|pm] appears.