From 34f6e1e7fcfb0a2157ff9636bd7c0538a91fc280 Mon Sep 17 00:00:00 2001 From: "Alexander A. Zaytsev" Date: Tue, 10 Jan 2012 15:40:03 +0400 Subject: [PATCH 1/2] add toFormatString() method --- core/Base/Date.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Base/Date.class.php b/core/Base/Date.class.php index b8614b3f0d..af60ef8678 100644 --- a/core/Base/Date.class.php +++ b/core/Base/Date.class.php @@ -274,6 +274,11 @@ public function toString() return $this->string; } + public function toFormatString($format) + { + return date($format, $this->toStamp()); + } + public function toDialectString(Dialect $dialect) { // there are no known differences yet From a4e4fffae5e198de555f6bc5c5fe2f01ee27ba2f Mon Sep 17 00:00:00 2001 From: "Evgeniy V. Kokovikhin" Date: Fri, 13 Jan 2012 10:53:19 +0400 Subject: [PATCH 2/2] + changelog --- doc/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index c19bd04dbc..3cef93b6e4 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2012-01-13 Alexander A. Zaytsev + + * core/Base/Date.class.php: toFormatString method added. + 2012-01-11 Evgeny V. Kokovikhin * core/DB/Dialect.class.php: throw exception for null values. Thanks to