ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:offsetdate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v5:reference:connection:offsetdate [2025/08/20 04:37] mnewnhamv5:reference:connection:offsetdate [2025/08/20 05:04] (current) mnewnham
Line 8: Line 8:
   )   )
 </WRAP> </WRAP>
 +
 +==== Note ==== 
 +Passing a decimal offset less than one without 
 +specifying a base date will always return the 
 +current date because the calculation time 
 +basis is always the beginning of the current date
 +
 ===== Description ===== ===== Description =====
 The function ''offsetDate()'' returns a string with the native SQL functions to calculate future and past dates based on ''$isoDate'' in a portable fashion. If ''$isoDate'' is not defined, then the current date (at 12 midnight) is used.  The function ''offsetDate()'' returns a string with the native SQL functions to calculate future and past dates based on ''$isoDate'' in a portable fashion. If ''$isoDate'' is not defined, then the current date (at 12 midnight) is used. 
v5/reference/connection/offsetdate.1755657460.txt.gz · Last modified: by mnewnham