#native_company# #native_desc#
#native_cta#

Splitting MySQL timestamp into separate variables

By Igor Kryltsov
on December 27, 2000

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");
?>