diff options
| author | Damien Regad <dregad@mantisbt.org> | 2013-08-05 13:56:24 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2013-08-05 13:56:24 +0200 |
| commit | 53010b5ceb548968e93c752defec085e7c508f4a (patch) | |
| tree | 332484926a4f961b6a12ca522f437e25bcace741 /tests/time.php | |
| parent | 212c76c103997ef3aeb539517899ed42ddffdae4 (diff) | |
| download | adodb-53010b5ceb548968e93c752defec085e7c508f4a.tar.gz adodb-53010b5ceb548968e93c752defec085e7c508f4a.tar.bz2 adodb-53010b5ceb548968e93c752defec085e7c508f4a.zip | |
Reorg: ADOdb5 (master) branch
- Move all files in adodb5/ to root
- Remove adodb-for-php4/ directory
Diffstat (limited to 'tests/time.php')
| -rw-r--r-- | tests/time.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/time.php b/tests/time.php new file mode 100644 index 00000000..2c0e21bc --- /dev/null +++ b/tests/time.php @@ -0,0 +1,18 @@ +<?php + +include_once('../adodb-time.inc.php'); +adodb_date_test(); +?> +<?php +//require("adodb-time.inc.php"); + +$datestring = "2063-12-24"; // string normally from mySQL +$stringArray = explode("-", $datestring); +$date = adodb_mktime(0,0,0,$stringArray[1],$stringArray[2],$stringArray[0]); + +$convertedDate = adodb_date("d-M-Y", $date); // converted string to UK style date + +echo( "Original: $datestring<br>" ); +echo( "Converted: $convertedDate" ); //why is string returned as one day (3 not 4) less for this example?? + +?>
\ No newline at end of file |
