[forwarded for discussion] ---------- Forwarded message ---------- Date: Thu, 15 Jul 2004 16:12:15 -0400 (EDT) From: Michael_G_Schwern via RT <[EMAIL PROTECTED]> To: undisclosed-recipients: ; Subject: [cpan #6981] Default stringification format
This message about DateTime was sent to you by MSCHWERN <[EMAIL PROTECTED]> via rt.cpan.org Full context and any attached attachments can be found at: <URL: https://rt.cpan.org/Ticket/Display.html?id=6981 > Its really important that date objects masquarade well as strings so you don't have to redesign your whole interface when you introduce them. DateTime currently only stringifies as an ISO8601 date. This is limiting. To get it in any other format you have to drop down to a plain string which sorta defeats the point. DateTime should have a default_format() method that takes a strftime pattern. This is the format it will use when stringifing. I'm writing a subclass that does this for my own purposes. Let me know if you think its a good idea and want a patch.