v5:reference:connection:unixtimestamp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
reference:unixtimestamp [2015/07/27 01:27] – created 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.1437953254.txt.gz · Last modified: 2017/04/21 11:32 (external edit)