You are here

function date_unix2array in Date 5

3 calls to date_unix2array()
date_iso2array in ./date.inc
date_set_date in ./date.inc
Function to set local and db date parts in the date object
date_unset_granularity in ./date.inc
Unset undesired date part values.

File

./date.inc, line 1201
Date/time API functions

Code

function date_unix2array($unix) {
  if (!date_is_valid($unix, DATE_UNIX)) {
    return 'ERROR';
  }

  // using gmgetdate instead of getdate so no server timezone adjustment is made
  return date_gmgetdate($unix);
}