Reputation: 2252
I am converting a ColdFusion application to .NET, and I have a question about date subtraction.
In the following if statement, qTripID.etd is the utc date and time of a flight departure, the comment says that that it is testing whether the flight has already departed.
<cfif qTripID.etd - DateConvert("local2utc",Now()) LT 0.166666666666667>
What type of information does the expression above return?
minutes? days? hours?
Upvotes: 1
Views: 417
Reputation: 1220
The entire expression:
qTripID.etd - DateConvert("local2utc",Now()) LT 0.166666666666667
returns a boolean value: 'LT' is ColdFusion's 'less than' operator.
I think you're asking what units is the 0.166666666667
? In which case it is days - the 0.1666... value being 4 hours.
Upvotes: 4