Home » Date and Time » Date » Bug #686
Factory
Details
| Submitted | 2004-02-05 09:34 UTC |
|---|---|
| From | shuther at gmx dot net |
| Status | Wont fix |
| Package | Date |
| PHP Version | 4.3.4 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2004-02-05 09:34 UTC] shuther at gmx dot net
Description:
------------
It is good to have a factory, at least to use the Date object within smarty.
Reproduce code:
---------------
133a139,143
> /* Facvtory, to be used by Smarty,... */
> function &factory($date = null) {
> return new Date($date);
> }
>
[2004-02-25 10:19 UTC] shuther at gmx dot net
Yes, ie. if we use smarty, we can call a method of an object, but we can't do a new Date(); but we may need a Date object to compare 2 dates.
I am not sure it is usefull otherwise, but still.