modifier.sumtime.php

来自「一款可以和GOOGLE媲美的开源统计系统,运用AJAX.功能强大. 无色提示:」· PHP 代码 · 共 32 行

PHP
32
字号
<?php/** * Piwik - Open source web analytics *  * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later * @version $Id: modifier.sumtime.php 444 2008-04-11 13:38:22Z johmathe $ *  * @package SmartyPlugins *//** * Returns a string that displays the number of days and hours from a number of seconds *  * How to use: * {4200|sumtime} will display '1h 10min' *  * Examples: * - 10 gives "10s" * - 4200 gives "1h 10min" * - 86400 gives "1 day" * - 90600 gives "1 day 1h" (it is exactly 1day 1h 10min but we truncate) *  * @return string *  */function smarty_modifier_sumtime($numberOfSeconds){	return Piwik_getPrettyTimeFromSeconds($numberOfSeconds);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?