Skip to content

Instantly share code, notes, and snippets.

View joel-depiltech's full-sized avatar

Joël Gaujard joel-depiltech

View GitHub Profile
@joel-depiltech
joel-depiltech / microtime_diff.php
Last active October 3, 2017 13:46 — forked from hadl/microtime_diff.php
PHP Microtime Diff -- Calculate a precise time difference
<?php
/**
* Calculate a precise time difference.
* @param string $start result of microtime()
* @param string $end result of microtime(); if NULL/FALSE/0/'' then it's now
* @return float difference in seconds, calculated with minimum precision loss
*/
function microtime_diff($start, $end = NULL)
{
$end = empty($end) ? microtime() : $end;
@joel-depiltech
joel-depiltech / composer.json
Last active August 11, 2017 10:14 — forked from mcaskill/Function.Date-Format-Conversion.php
PHP : Translate date/time format between `date()` and `strftime()`
{
"name": "joel-depiltech/date-format-conversion",
"description": "Translate date/time format between `date()` and `strftime()`",
"authors": [
{
"name": "Chauncey McAskill",
"email": "chauncey@mcaskill.ca",
"homepage": "https://github.com/mcaskill"
},
{