You can automatically use PHP-formatted date and time information from the web server. To do so, you must first convert PHP-derived time and date information into a Telegraph field using the field directive:
<directive action="field" name="new-field-name" value="profile-field-name" />
- Example:
<directive action="field" name="time-and-date" value="[timestamp:date] - [timestamp:time]" />
A complete list of available timestamps:
| Field Name | Description |
|---|---|
| [timestamp:date] | The date (“9 August 2007”). |
| [timestamp:time] | The time (“9:34 AM”). |
| [timestamp:miltime] | 24-hour time (“09:34”). |
| [timestamp:day] | The day of the month (“9”). |
| [timestamp:DD] | The two-digit day of the month (“09”). |
| [timestamp:month] | The name of the month (“August”). |
| [timestamp:MM] | The two-digit number of the month (“08”). |
| [timestamp:mon] | The three-letter abbreviation of the month (“Aug”). |
| [timestamp:year] | The four-digit year (“2007”). |
| [timestamp:YYYY] | The four-digit year (“2007”). |
| [timestamp:YY] | The two-digit year (“07”). |
| [timestamp:weekday] | The full name of the day of the week (“Thursday”). |
| [timestamp:shortday] | The three-letter abbreviation of the day of the week (“Thu”). |
| [timestamp:hour] | The one-digit hour (“9”). |
| [timestamp:hh] | The two-digit hour (“09”). |
| [timestamp:minute] | The current minutes of the hour (“34”). |
| [timestamp:mm] | The current minutes of the hour (“34”). |
| [timestamp:ss] | The current seconds of the minute (“41”). |
| [timestamp:ampm] | “AM” or “PM |
