Add 10 minutes to datetime()

Add 10 minutes to datetime()

Postby Marc Vanzegbroeck » Sat Jun 08, 2019 10:47 am

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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Add 10 minutes to datetime()

Postby nageswaragunupudi » Sat Jun 08, 2019 11:10 am

Code: Select all  Expand view  RUN

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10655
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Add 10 minutes to datetime()

Postby Marc Vanzegbroeck » Sat Jun 08, 2019 11:20 am

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

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 36 guests