File: time.php

package info (click to toggle)
ipplan 4.92a-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,256 kB
  • ctags: 11,121
  • sloc: php: 44,277; sh: 387; perl: 257; xml: 97; makefile: 57; sql: 32
file content (17 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

include_once('../adodb-time.inc.php');
//adodb_date_test();
?>
<?php 
//require("adodb-time.inc.php"); 

$datestring = "1963-12-04"; // string normally from mySQL 
$stringArray = explode("-", $datestring);
$date = adodb_mktime(0,0,0,$stringArray[1],$stringArray[2],$stringArray[0]); 

$convertedDate = date("d-M-Y", $date); // converted string to UK style date

echo( "Birthday: $convertedDate" ); //why is string returned as one day (3 not 4) less for this example??

?>