v5:reference:connection:unixtimestamp
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:connection:unixtimestamp [2016/01/17 01:44] – ↷ Page moved from v5:reference:unixtimestamp to v5:reference:connection:unixtimestamp mnewnham | v5:reference:connection:unixtimestamp [2020/01/05 19:21] (current) – mnewnham | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| <WRAP right box> | <WRAP right box> | ||
| == syntax == | == syntax == | ||
| - |    | + |    | 
| - | float $timestamp, | + |          string  | 
| - | + | } | |
| - | } | + | |
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The **static** function '' | + | The **static** function '' | 
| - | strings are controlled by a global array, which might need localisation).  | + | |
| + | It expects the date passed  | ||
| + |   * " | ||
| + | * "Y-m-d H:i:s" (1970-12-24 00:00:00) | ||
| + |   * " | ||
| + |   * "M d Y h:i:s" (Dec 25 1970 00: | ||
| + | |||
| + | For databases that do not support the functionality, | ||
| ===== Usage ===== | ===== Usage ===== | ||
| Line 22: | Line 28: | ||
| * Connection to SQL Server database assumed | * Connection to SQL Server database assumed | ||
| */ | */ | ||
| - | $d = $db:: | + | $d = $db:: | 
| print $d; | print $d; | ||
| /* | /* | ||
v5/reference/connection/unixtimestamp.1452991494.txt.gz · Last modified:  (external edit)
                
                