• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Frage: Datum heranziehen / Format seltsam

Hans

Neues Mitglied
Hallo,
ich in einem Objekt ein datum herangezogen, folgendermassen:

class="block"><dtml-var "getObjProperty('semDate',REQUEST)">


Nun Bekomm ich folgende ausgabe auf der homepage:

(2011, 4, 8, 0, 0, 0, 4, 98, 0)

Das Datum ist der 8.4.2011!

Ich möchte das aber im format dd-mm-yy anzeigen lassen. Was sind die restlichen Zahlen. Wie kann ich im obigen code die formatierung anpassen?

Danke!
 
Du benutzt da Zope DTML?

- 25. Appendix A: DTML Reference &mdash; Zope 2 v2.x documentation

Da ist zum Beispiel die Rede von DateTime. Dazu gibt es allerdings offenbar derzeit keine API-Dokumentation:

The manually maintained API reference wasn’t such a good idea.

Converting it from the original source of structured text to reStructuredText was too much work to be done. We will look into auto-generating the API documentation from docstrings at some point.

Reading the code is your best bet for now.

- 26. Appendix B: API Reference &mdash; Zope 2 v2.x documentation
 
Zurück
Oben