v5:datetime:adodb_date
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
datetime:adodb_date [2015/11/26 15:18] – mnewnham | v5:datetime:adodb_date [2023/05/18 18:55] (current) – Deprecated dregad | ||
---|---|---|---|
Line 5: | Line 5: | ||
[[http:// | [[http:// | ||
== Syntax == | == Syntax == | ||
- | | + | |
string $format, | string $format, | ||
optional mixed $timestamp = false | optional mixed $timestamp = false | ||
) | ) | ||
</ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | [[datetime_index# | ||
+ | Use 64-bit native PHP functions instead. | ||
+ | </ | ||
+ | |||
===== Description ===== | ===== Description ===== | ||
- | This function converts a timestamp to a formatted local date. If '' | + | This function converts a timestamp to a formatted local date. If '' |
+ | ------------------------------------- | ||
+ | ===== Usage ====== | ||
+ | <code php> | ||
+ | print adodb_date(' | ||
+ | /* | ||
+ | * Prints 03/ | ||
+ | */ | ||
+ | |||
+ | print adodb_date(' | ||
+ | /* | ||
+ | * Prints 12/ | ||
+ | */ | ||
- | ------------------------------- | + | print adodb_date(' |
+ | /* | ||
+ | * Prints 12/ | ||
+ | */ | ||
+ | </ | ||
+ | ===== Available Formats ===== | ||
The format fields that adodb_date supports: | The format fields that adodb_date supports: | ||
v5/datetime/adodb_date.1448547503.txt.gz · Last modified: 2017/04/21 11:27 (external edit)