This small piece of code makes the 'localtime()' function in PHP Y2K compliant.
(I wonder why the people at Zend didn't do that with the release of PHP4)
Maybe it was not so important, but it's nice to have.
<?
function localtime_y2k ($time, $is_ass) {
$t_arr = localtime ($time, $is_ass);
if ($is_ass == 0) $t_arr[5] = $t_arr[5] + 1900;
if ($is_ass == 1) $t_arr["tm_year"] = $t_arr["tm_year"] + 1900;
return $t_arr;
}
?>
You can also download the file. There you'll find the function in a test document.
A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed. Categories : Date Time , PHP , Complete Programs , Calendar enhanced date picker with jcript checking for a dynamic date input Categories : PHP , Java Script , Date Time , Calendar , Arrays Find the day of the week for any given year/month/day. Categories : PHP , Date Time , Data Validation , Algorithms , Beginner Guides Count Number Of weeks in Month Categories : PHP , Date Time , Beginner Guides time() function with microseconds Categories : Date Time , PHP checkdate -- Validate a gregorian date/time Categories : PHP , PHP Functions , Date Time Find if a year is leap. Categories : PHP , Date Time , Beginner Guides , Data Validation Simple graphic clock/watch generation using gd library. Categories : Graphics , Date Time , PHP A PHP Calendar function with CSS : add a cool calendar to any php page by just adding a calendar class based function. Categories : PHP , PHP Classes , Calendar , Date Time Bs_StopWatch is a class to measure time intervals in microseconds.
Categories : PHP , Date Time , PHP Classes formating MySQL Timestamp to get a propper Output.
related : Timestamp, ereg_replace, mysql, substr Categories : MySQL , PHP , Date Time , Databases Kewl Date Example Categories : PHP , HTML and PHP , Date Time , CSS , Beginner Guides This script obtains the current Universal Time from the National Institute of Standards and Technology of the United States of America. Categories : PHP , Date Time Customizable Calendar Class Categories : HTML and PHP , Date Time , PHP , PHP Classes , Calendar Simple function to return the number of days in a time span between 2 given dates. Categories : PHP , Date Time , MySQL , Databases