当前位置: 首页>>代码示例>>PHP>>正文


PHP TimeDate::time方法代码示例

本文整理汇总了PHP中TimeDate::time方法的典型用法代码示例。如果您正苦于以下问题:PHP TimeDate::time方法的具体用法?PHP TimeDate::time怎么用?PHP TimeDate::time使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TimeDate的用法示例。


在下文中一共展示了TimeDate::time方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

                 
              </div>
          </div>
          <?php 
    }
} else {
    ?>
            <div class="carouselGallery-col-60" style=" margin-top: 22px; border-radius: 2px;     float: none; text-align: left;"> 
            <?php 
    if (!empty($image)) {
        $i = 0;
        foreach ($image as $key => $value) {
            $url = $value->url . "/" . $value->resize_1;
            $user_name = $value->user_lastname . " " . $value->user_firstname;
            $date = new TimeDate();
            $time = $date->time($value->created_at);
            ?>
              <div style = "max-width: 300px; height: 250px;display: inline-block; margin: 40px 10px; text-align: center;" class = "photo carouselGallery-col-1 carouselGallery-carousel" data-avatar = "<?php 
            echo $value->avatar;
            ?>
" data-index="<?php 
            echo ++$i;
            ?>
" data-id = "<?php 
            echo $value->id;
            ?>
" data-username="<?php 
            echo $user_name;
            ?>
" data-imagetext="<?php 
            echo $value->describe;
开发者ID:TrinhThiThuyDung,项目名称:letsgo,代码行数:30,代码来源:photo-category.blade.php

示例2: TimeDate

                      <br>
                      <?php 
                if ($value->user_id == $user_id) {
                    ?>
                      <a  href="/web/photo/action/deleteComment/<?php 
                    echo $value->id;
                    ?>
" class="remove-comment"> <span class="delete-comment" data-toggle="tooltip" title="delete comment!"> </span></a>
                      <?php 
                }
                ?>
                       
                      <time>
                     <span style = "font-size: 11px; margin-left: 39px; color: #b2b7b4;"><?php 
                $date = new TimeDate();
                echo $date->time($value->created_at);
                ?>
</span>
                      </time>
                    </div>
                      <?php 
                $y++;
            }
        }
        ?>
                 
                  </div>
                </div>
              </div>
              <?php 
    }
开发者ID:TrinhThiThuyDung,项目名称:letsgo,代码行数:31,代码来源:photo.blade.php

示例3: foreach

                               <!--  <div class="container gal-container"> -->
               <div class="container">
              <div class="row" >
              	 	<div class="carouselGallery-col-60" style="text-align: left;">
                  <?php 
if (!$data['user_like']) {
    ?>
                  <div class="empty-images">
                        <span>No photo you love!</span>        
                              </div>
               <?php 
} else {
    $i = 1;
    foreach ($data['user_like'] as $key => $photo) {
        $date = new TimeDate();
        $time = $date->time($photo->created_at);
        ?>
                  <div style = "max-width: 300px; height: 250px;display: inline-block; margin: 40px 10px; text-align: center;"class = "photo carouselGallery-col-1 carouselGallery-carousel" data-avatar = "<?php 
        echo $avatar;
        ?>
" data-index="<?php 
        echo ++$i;
        ?>
" data-id = "<?php 
        echo $photo->id;
        ?>
" data-username="<?php 
        echo $photo->user_lastname . " " . $photo->user_firstname;
        ?>
" data-imagetext="<?php 
        echo $photo->describe;
开发者ID:TrinhThiThuyDung,项目名称:letsgo,代码行数:31,代码来源:profile.blade.php


注:本文中的TimeDate::time方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。