See #106. Add another example PHP script.

This commit is contained in:
Glavin Wiechert 2014-10-05 09:51:24 -03:00
parent 0f734aaf47
commit 3fa4aa292f
1 changed files with 19 additions and 0 deletions

View File

@ -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;
}
}