示例#1
0
    echo $path;
    ?>
</a>
                <div class='details hidden'>
                    <?php 
    echo $fileList;
    ?>

                </div>
            </td>
            <td class="al-c"><?php 
    echo YiiDebug::t('{n} file|{n} files', array(count($files)));
    ?>
</td>
            <td class="al-c"><?php 
    echo $DF->formatDateTime(filemtime($path));
    ?>
</td>
            <td class="al-c">
                <a class="deleteAsset" href="<?php 
    echo $this->owner->assetsUrl;
    ?>
/ajax.php?deleteasset=<?php 
    echo $asset;
    ?>
"
						onclick="deleteAsset(this, <?php 
    echo $blockAll ? 'true' : 'false';
    ?>
); return false;">
										<?php 
示例#2
0
function sql2long_date($date)
{
    $timestamp = CDateTimeParser::parse($date, 'yyyy-MM-dd');
    $formater = new CDateFormatter('id_ID');
    return $formater->formatDateTime($timestamp, 'long', false);
}
示例#3
0
 /**
  * Add support for DateTime objects.
  *
  * @param string|DateTime $timestamp
  * @param string          $dateWidth
  * @param string          $timeWidth
  *
  * @return string
  */
 public function formatDateTime($timestamp, $dateWidth = 'medium', $timeWidth = 'medium')
 {
     if ($timestamp instanceof \DateTime) {
         $timestamp = $timestamp->getTimestamp();
     }
     return parent::formatDateTime($timestamp, $dateWidth, $timeWidth);
 }