current_time Wordpress function


Description:

Retrieve the current time based on specified type.


Syntax:


Arguments:

(string) $type Either 'mysql' or 'timestamp'.
(int|bool) $gmt Optional. Whether to use GMT timezone. Default is false.


Return Type:

(int|string) String if $type is 'gmt', int if $type is 'timestamp'.


Define At:

wp-includes/functions.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/current_time


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×