I found this as well in Help. But what I'm trying to figure out is the CurrentDatetime from the MQMD PutTime value which is in GMT format. The EXTRACT ( that I can see ) will not help me here. Correct ?
If you want to know what the current date and time are, in GMT...
then you want one of the CURRENT_GMT* functions.
If you want to subtract one Date/DateTime/Time value from another, you use the subtraction operation, and get back an interval.
Quote:
Operator -
The result is the difference between the two operands. It is possible to:
* Subtract one numeric value from another.
* Subtract one datetime from another. The result is an interval.
* Subtract one interval from another.
* Subtract an interval from a datetime value.
_________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum