Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return centesimal or millesimal seconds with Datetime()
Message
From
04/12/1998 11:20:28
 
 
To
04/12/1998 10:53:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00164082
Message ID:
00164103
Views:
26
define hirestime as custom
protected mDateTime, mSeconds, mZeroDate

function init
	with this
		.mSeconds = seconds()
		.mDateTime = datetime()
		.mZerodate = dtot({^1970/01/01})
	endwith
	return .t.
endfunc

function hour()
	return hour(this.mDateTime)
endfunc

function minute()
	return minute(this.mDateTime)
endfunc

function centisec()
	return this.millisec() / 10
endfunc

function millisec()
	return this.mSeconds % 1000
endfunc

enddefine
Previous
Reply
Map
View

Click here to load this message in the networking platform