Skip to content

Commit 34f6e1e

Browse files
Alexander A. Zaytsevdovg
authored andcommitted
add toFormatString() method
1 parent e0171a0 commit 34f6e1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/Base/Date.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ public function toString()
274274
return $this->string;
275275
}
276276

277+
public function toFormatString($format)
278+
{
279+
return date($format, $this->toStamp());
280+
}
281+
277282
public function toDialectString(Dialect $dialect)
278283
{
279284
// there are no known differences yet

0 commit comments

Comments
 (0)