Add 10 minutes to datetime()

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Add 10 minutes to datetime()

Post by Marc Vanzegbroeck »

How can I add 10minutes to a datetime() value?
If I do datetime()+1, it add 1 day.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Add 10 minutes to datetime()

Post by nageswaragunupudi »

Code: Select all

t := datetime()
t2 := t + ( 10/24/60 )
? t,t2
 
Regards

G. N. Rao.
Hyderabad, India
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: Add 10 minutes to datetime()

Post by Marc Vanzegbroeck »

Thank you.
It's working fine.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Post Reply