Version: 4.0.3pl1

Type: Sample Code (HOWTO)

Category: Calendars/Dates

License: GNU General Public License

Description: Splitting MySQL timestamp into separate variables



<?
list($year, $month, $date, $hour, $min, $sec) = sscanf($your_mysql_timestamp, "%4dd%2dd%2dd%2dd%2dd%2dd");
?>