ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:unixtimestamp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:connection:unixtimestamp [2020/01/05 19:17] – [Description] mnewnhamv5:reference:connection:unixtimestamp [2020/01/05 19:21] (current) mnewnham
Line 6: Line 6:
 <WRAP right box> <WRAP right box>
 == syntax == == syntax ==
-  int dbObject::unixDate(){ +  float dbObject::unixDate(){ 
-         float $timestamp, +         string $timestamp 
-          +  }
-         }+
                    
 </WRAP> </WRAP>
Line 29: Line 28:
  * Connection to SQL Server database assumed  * Connection to SQL Server database assumed
  */  */
-$d = $db::unixDate(strtotime('1920-10-10'));+$d = $db::unixDate(strtotime('1920-10-10 00:00:00'));
 print $d; print $d;
 /* /*
v5/reference/connection/unixtimestamp.txt · Last modified: 2020/01/05 19:21 by mnewnham