Documentation TYPO3 par Ameos

time.php

00001 <?php
00002 
00003 include_once('../adodb-time.inc.php');
00004 //adodb_date_test();
00005 ?>
00006 <?php 
00007 //require("adodb-time.inc.php"); 
00008 
00009 $datestring = "1963-12-04"; // string normally from mySQL 
00010 $stringArray = explode("-", $datestring);
00011 $date = adodb_mktime(0,0,0,$stringArray[1],$stringArray[2],$stringArray[0]); 
00012 
00013 $convertedDate = date("d-M-Y", $date); // converted string to UK style date
00014 
00015 echo( "Birthday: $convertedDate" ); //why is string returned as one day (3 not 4) less for this example??
00016 
00017 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6