Setting event duration
2 posts
• Page 1 of 1
Posts: 35
Joined: Tue Nov 25, 2008 11:49 am |
I've set the Sample Events::EndTime using calculation show here: http://www.seedcode.com/pmwiki/pmwiki.p ... ntDuration, but it doesn't work in my application. Nor does it appear to work in the source program that you provide. In both programs the end time comes up as 12:00 AM.
|
Hi Will,
I think I see the issue Try this one: Let ( [ d = 1200 ; // Default event duration in seconds t = If ( not IsEmpty ( TimeStart ) ; TimeStart + d ; "" ) ; t = Case ( t = Time ( 24 ; 0 ; 0 ) ; Time ( 24 ; 0 ; 1 ) ; t = Time ( 0 ; 0 ; 0 ) ; Time ( 0 ; 0 ; 1 ) ; t > Time ( 24 ; 0 ; 0 ) ; t - Time ( 24 ; 0 ; 0 ) + 1 ; t ) ] ; t ) I'm going to have John double check, then we'll update the docs. Thanks for reporting this...if we had t-shirts, we'd send you one! -Jason |
|
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 4 guests