Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/Base/Date.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down