timestamp questions

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
tkilshaw
Posts: 170
Joined: Thu Jan 19, 2006 11:33 pm
Location: Western Canada
Contact:

timestamp questions

Post by tkilshaw »

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
aware_support2
Posts: 595
Joined: Sun Apr 24, 2005 2:22 am
Contact:

Post by aware_support2 »

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.
Aware IM Support Team
Post Reply