1--TEST-- 2Test the basics to function date_timestamp_set(). 3--CREDITS-- 4Rodrigo Prado de Jesus <royopa [at] gmail [dot] com> 5--INI-- 6date.timezone = UTC; 7date_default_timezone_set("America/Sao_Paulo"); 8--FILE-- 9<?php 10$dftz021 = date_default_timezone_get(); //UTC 11 12$dtms021 = date_create(); 13 14date_timestamp_set($dtms021, 1234567890); 15 16var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s')); 17?> 18--EXPECTF-- 19string(47) "021 => (1234567890) => UTC 2009-Feb-13 23:31:30" 20