/var/www/hkosl.com/aga/wp-content/plugins/foogallery/includes/foopluginbase/functions/dates.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
 * Foo Functions - Dates
 * A bunch of common and useful functions related to dates
 *
 * Author: Brad Vincent
 * Author URI: http://fooplugins.com
 * License: GPL2
*/

if ( !function_exists'foo_friendly_date' ) ) {

    
/**
     * Return a friendly date compared to the current date
     *
     * @param $timestamp    string|int     The timestamp we want return a friendly date for
     *
     * @return string        A friendly date
     */
    
function foo_friendly_date$timestamp ) {
        
$instance = new Foo_Friendly_Dates_v1();
        return 
$instance->friendly_date$timestamp );
    }
}