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


PHP Utility::formatDateTime方法代码示例

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


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

示例1: foreach

        <div class="row">
          <?php 
    foreach ($request_tokens as $row) {
        ?>
            <?php 
        $token = $row['OAuthToken'];
        ?>
            <?php 
        $app = $row['OAuthConsumer'];
        ?>
            <div class="span4" style="margin-top: 8px; margin-bottom: 8px;">
              <?php 
        echo $app->getLink();
        ?>
 requested access on <?php 
        echo Utility::formatDateTime($token->get('last_seen'));
        ?>
              <a href="/app/authorize?oauth_token=<?php 
        echo $token->get('token');
        ?>
" class="btn btn-primary btn-mini">view</a>
      			  <a href="<?php 
        echo $token->getUrl();
        ?>
/revoke" class="btn btn-danger btn-mini">deny</a>
            </div>
          <?php 
    }
    ?>
        </div>
      </div>
开发者ID:JoonasMelin,项目名称:BotQueue,代码行数:31,代码来源:dashboard.php

示例2:

            ?>
</td>
    	  <?php 
        }
        ?>
    		<?php 
        if ($hide != 'queue') {
            ?>
    			<td><?php 
            echo $log->getQueue()->getLink();
            ?>
</td>
    		<?php 
        }
        ?>
    		<?php 
        /*if ($hide != 'user'): ?>
        			<td><?=$log->getUser()->getLink()?></td>
        		<? endif*/
        ?>
    		<td><?php 
        echo Utility::formatDateTime($log->get('error_date'));
        ?>
</td>        
      </tr>
    <?php 
    }
    ?>
  </table>
<?php 
}
开发者ID:ricberw,项目名称:BotQueue,代码行数:31,代码来源:draw_error_log.php

示例3:

						<td><?php 
    echo Utility::filesizeFormat($file->get('size'));
    ?>
</td>
					</tr>
					<tr>
						<th>MD5 Hash:</th>
						<td><?php 
    echo $file->get('hash');
    ?>
</td>
					</tr>
					<tr>
						<th>Add Date:</th>
						<td><?php 
    echo Utility::formatDateTime($file->get('add_date'));
    ?>
`</td>
					</tr>
					<tr>
						<th>Manage:</th>
						<td><a href="/job/create/file:<?php 
    echo $file->id;
    ?>
">re-run</a></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="span6">
			TODO: add file jobs here.
开发者ID:ricberw,项目名称:BotQueue,代码行数:31,代码来源:file.php

示例4:

</td>
  					</tr>
  				<?php 
    }
    ?>
					<tr>
						<th>Add Date:</th>
						<td><?php 
    echo Utility::formatDateTime($config->get('add_date'));
    ?>
</td>
					</tr>
					<tr>
						<th>Edit Date:</th>
						<td><?php 
    echo Utility::formatDateTime($config->get('edit_date'));
    ?>
</td>
					</tr>
					<tr>
						<th>Config Data:</th>
						<td>
						  <button class="btn" onclick="$(this).hide(); $('#config_data').show()">Click to show config data</button>
						  <span id="config_data" style="display: none"><?php 
    echo nl2br(Utility::sanitize($config->get('config_data')));
    ?>
</span>
						  </td>
					</tr>
				</tbody>
			</table>
开发者ID:JoonasMelin,项目名称:BotQueue,代码行数:31,代码来源:config_view.php

示例5:

  						<th>Taken Date:</th>
  						<td><?php 
        echo Utility::formatDateTime($job->get('taken_date'));
        ?>
</td>
  					</tr>
  				<?php 
    }
    ?>
					<?php 
    if (strtotime($job->get('finish_date')) > 0) {
        ?>
  					<tr>
  						<th>Finished Date:</th>
  						<td><?php 
        echo Utility::formatDateTime($job->get('finish_date'));
        ?>
</td>
  					</tr>
  				<?php 
    }
    ?>
					<?php 
    if ($job->get('output_log')) {
        ?>
  					<tr>
  						<th>Output Log:</th>
  						<td><?php 
        echo nl2br(Utility::sanitize($job->get('output_log')));
        ?>
</td>
开发者ID:JoonasMelin,项目名称:BotQueue,代码行数:31,代码来源:job_view.php

示例6:

        $c = $row['Comment'];
        ?>
    <?php 
        $u = $row['User'];
        ?>
    <div id="comment_<?php 
        echo $c->id;
        ?>
" class="comment_data">
      <div class="comment_meta">
        <h4><?php 
        echo $u->getLink();
        ?>
</h4>
        <h4 class="muted"><?php 
        echo Utility::formatDateTime($c->get('comment_date'));
        ?>
</h4>
      </div>
      <div class="comment_body"><?php 
        echo Utility::cleanAndPretty($c->get('comment'));
        ?>
</div>
    </div>
  <?php 
    }
} else {
    ?>
  <div class="alert alert-info">
    No comments found.
  </div>
开发者ID:JoonasMelin,项目名称:BotQueue,代码行数:31,代码来源:draw_all.php

示例7:

)</span></td>
					<?php 
    } else {
        ?>
						<td><span class="muted">n/a</span></td>
					<?php 
    }
    ?>
				</tr>
				<tr>
					<th>Finished:</th>
					<?php 
    if (strtotime($job->get('verified_time')) > 0) {
        ?>
						<td><?php 
        echo Utility::formatDateTime($job->get('verified_time'));
        ?>
 <span
								class="muted">(<?php 
        echo Utility::relativeTime($job->get('verified_time'));
        ?>
)</span></td>
					<?php 
    } else {
        ?>
						<td><span class="muted">n/a</span></td>
					<?php 
    }
    ?>
				</tr>
				<tr>
开发者ID:JoonasMelin,项目名称:BotQueue,代码行数:31,代码来源:view.php


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