v5:reference:connection:unixtimestamp
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
reference:unixtimestamp [2015/07/27 01:27] – created mnewnham | v5:reference:connection:unixtimestamp [2020/01/05 19:19] – [SQL Server example] mnewnham | ||
---|---|---|---|
Line 13: | Line 13: | ||
</ | </ | ||
===== 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 29: | ||
* Connection to SQL Server database assumed | * Connection to SQL Server database assumed | ||
*/ | */ | ||
- | $d = $db:: | + | $d = $db:: |
print $d; | print $d; | ||
/* | /* |
v5/reference/connection/unixtimestamp.txt · Last modified: 2020/01/05 19:21 by mnewnham