If I have two attributes of type timestamp, and I want to to set the first one to the current time that's easy. But if I want to set the second one to the time of the first timestamp plus 15 minutes, how is that done.
I cannot add fractional hours to a timestamp, as far as I can see.
Also if I want to set a timestamp to the next hour after the current time, how is that done. For example, if its now May 16th at 11:20 am, I want my timestamp to be set for May 16th at 12:00 pm.
thanks,
Terry
timestamp questions
-
- Posts: 595
- Joined: Sun Apr 24, 2005 2:22 am
- Contact:
Terry,
> But if I want to set the second one to the time of the first timestamp plus 15 minutes, how is that done.
By using a duration-type constant, for example:
MyObject.Timestamp2 = MyObject.Timestamp1 + 0w0d00:15
> For example, if its now May 16th at 11:20 am, I want my timestamp to be set for May 16th at 12:00 pm.
This will be supported in the next version of Aware IM due out in a few weeks.
> But if I want to set the second one to the time of the first timestamp plus 15 minutes, how is that done.
By using a duration-type constant, for example:
MyObject.Timestamp2 = MyObject.Timestamp1 + 0w0d00:15
> For example, if its now May 16th at 11:20 am, I want my timestamp to be set for May 16th at 12:00 pm.
This will be supported in the next version of Aware IM due out in a few weeks.
Aware IM Support Team