v5:datetime:adodb_date2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
datetime:adodb_date2 [2015/12/03 22:43] – mnewnham | datetime:adodb_date2 [2015/12/03 22:45] – mnewnham | ||
---|---|---|---|
Line 11: | Line 11: | ||
</ | </ | ||
===== Description ===== | ===== Description ===== | ||
- | This function extends the adodb_date() function, allowing the second argument to be passed as an ISO format string instead of a timestamp. This makes it easier to generate formatted times outside of the normal unix timestamp range. To make the calculation work correctly for early years, it is important to use 4 digit years for the '' | + | This function extends the adodb_date() function, allowing the second argument to be passed as an ISO format string instead of a timestamp. This makes it easier to generate formatted times outside of the normal unix timestamp range. |
+ | ---------------------------------- | ||
+ | ===== Usage ===== | ||
+ | <code php> | ||
+ | $d = adodb_date2(' | ||
+ | </ | ||
+ | ===== Note ===== | ||
+ | |||
+ | To make the calculation work correctly for early years, it is important to use 4 digit years for the '' | ||
+ | ----------------------------------------------- | ||
<code php> | <code php> | ||
/* | /* | ||
Line 28: | Line 37: | ||
* Returns 12/03/2015 (todays date) | * Returns 12/03/2015 (todays date) | ||
*/ | */ | ||
- | |||
- | |||
- | ---------------------------------- | ||
- | ===== Usage ===== | ||
- | <code php> | ||
- | $d = adodb_date2(' | ||
</ | </ | ||
+ |
v5/datetime/adodb_date2.txt · Last modified: 2023/05/18 18:54 by dregad