This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Util_time{ | |
public function __coustruct(){} | |
/** | |
* 计算两个时间戳相隔多少天 小时 分钟 秒 传入秒 | |
*/ | |
public function timediff($begin_time,$end_time) { | |
if($begin_time < $end_time){ | |
$starttime = $begin_time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Complete reworking of JS from https://gist.github.com/803410 | |
* Removes external `request` dependency | |
* Caveats: | |
* * No error checking | |
* * Largely a POC. `data` URI is accurate, but this code cannot simply be inserted into an `express` app | |
*/ | |
var URL = require('url'), | |
sURL = 'http://nodejs.org/logo.png', | |
oURL = URL.parse(sURL), |