[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: El question



PureBytes Links

Trading Reference Links

Re my last post, the CalcTime function is included with later versions
of TS. Users of earlier versions can paste this code in as a new user
function.


{ *******************************************************************

	Study		: CalcTime
	
	Last Edit	: 7/7/95

	Provided By	: Omega Research, Inc. (c) Copyright 1995

********************************************************************}
{ 
	inputs:		xTime		-	time in 24 hour format.
				Minutes	- 	amount to add/subtract to xTime. 
   
	returns: 	Adjusted time in 24 hour format.

	properties
		[ ] Auto Detect
		[*] Simple
		[ ] Series

	Sample Usage : 
	
	if (Time[0] > AddTime (Sess1StartTime, +30)) then ...

	Note: To subtract time pass a negative number for Minutes.

}

inputs : xTime   (NumericSimple),  Minutes (NumericSimple) ;
CalcTime = MinutesToTime (TimeToMinutes (xTime) + Minutes) ;


-- 
   Dennis