time with milliseconds
- don lowenstein
- Posts: 196
- Joined: Mon Oct 17, 2005 9:09 pm
- Contact:
time with milliseconds
Does a function exist which returns the time with milliseconds?
Don Lowenstein
www.laapc.com
www.laapc.com
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: time with milliseconds
Code: Select all
? DateTime() // --> 14-03-2020 20:56:20.355
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: time with milliseconds
Please keep this function:
? TIME_MS() will return a time string in format HH:MM:SS.CCC with milliseconds
Code: Select all
function TIME_MS()
#ifdef __XHARBOUR__
local cTime := TTOC( DateTime(), 2 )
#else
local cTime := HB_TTOC( HB_DateTime(), "", "HH:MM:SS:FFF" )
#endif
return cTime
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- don lowenstein
- Posts: 196
- Joined: Mon Oct 17, 2005 9:09 pm
- Contact: