See #106. Add another example PHP script.
This commit is contained in:
parent
0f734aaf47
commit
3fa4aa292f
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class Date
|
||||
{
|
||||
const FORMAT_FULL = 'full';
|
||||
const FORMAT_LONG = 'long';
|
||||
const FORMAT_MEDIUM = 'medium';
|
||||
const FORMAT_SHORT = 'short';
|
||||
|
||||
public static function formatDate($time, $format)
|
||||
{
|
||||
if(!$time || $time == null)
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
return $time;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue