classes/phing/tasks/system/TstampTask.php
Sets properties to the current time, or offsets from the current time.
The default properties are TSTAMP, DSTAMP and TODAY;
Based on Ant's Tstamp task.
- author
- Michiel Rook
- package
- phing.tasks.system
- since
- 2.2.0
- version
- $Revision: 557 $
\TstampCustomFormat
- package
- phing.tasks.system
Properties
Methods

execute(
\TstampTask $tstamp
)
:
validate parameter and execute the format.
| Name | Type | Description |
|---|---|---|
| $tstamp | \TstampTask | reference to task |

setLocale(
$locale
)
:
The locale used to create date/time string.
| Name | Type | Description |
|---|---|---|
| $locale | locale |

setPattern(
$pattern
)
:
The date/time pattern to be used. The values are as
defined by the PHP strftime() function.
| Name | Type | Description |
|---|---|---|
| $pattern | pattern |
\TstampTask
Sets properties to the current time, or offsets from the current time.
The default properties are TSTAMP, DSTAMP and TODAY;
Based on Ant's Tstamp task.
- Extends from
- \Task
- author
- Michiel Rook
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.system
- since
- 2.2.0
- version
- $Revision: 557 $
Properties
Methods

addFormat(
\TstampCustomFormat $cf
)
:
Adds a custom format
| Name | Type | Description |
|---|---|---|
| $cf | \TstampCustomFormat | custom format |

prefixProperty(
$name, $value
)
:
helper that encapsulates prefix logic and property setting
policy (i.e. we use setNewProperty instead of setProperty).
| Name | Type | Description |
|---|---|---|
| $name | ||
| $value |