portableSql
AddSecondsToDateTime Portable SQL Function
Syntax
AddSecondsToDateTime as T (DateTime as T, NrOfSeconds as N)
Arguments
- DateTimeTime
A field or value.
- NrOfSecondsNumeric
The number of seconds to add.
Returns
- resultTime
Returns the date and time value NrOfSeconds seconds ahead of DateTime.
Description
Get the date and time value NrOfSeconds seconds ahead of DateTime.
Discussion
The AddSecondsToDateTime function computes the date and time value NrOfSeconds seconds ahead of DateTime.
AddSecondsToDateTime() function executed on the Northwind Access database
SELECT FIRST 1 Now() AS Now, AddSecondsToDateTime(Now(), 3600) AS Later FROM Orders =10/10/2019 12:45:57 00 pm|10/10/2019 01:45:57 00 pm