PHPBuilder - Splitting MySQL timestamp into separate variables



RSS Twitter
Snippets Calendars Dates

Splitting MySQL timestamp into separate variables

by: Igor Kryltsov
|
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");
?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Igor Kryltsov

Comment:



Comment:

(Maximum characters: 1200). You have characters left.