Tip: Auto Enter Durations

Support for our integrated Contact Manager, Calendar, and Project Tracker.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Aug 23, 2010 7:33 am
This nice trick from Todd Geist at http://www.geistinteractive.com who has been doing some great calendar mods for customers...

Here is a useful calc I just came up with for the Calendar. Maybe you have something similar somewhere, but just in case here it is

--------------------------------------------------
Let(
[
t = Get ( CurrentTime );
i = GetAsNumber(CalendarInterface::TimeIncrementAutoGlob)
];
GetAsTime(
Ceiling ( (t/i) ) * i
)
)
--------------------------------------------------


I use it to calc the start time for the event based on current time and the TimeIncrementAutoGlob. So given this

current time = 8:13 am
TimeIncrementAutoGlob = "0:30:00"

it returns

8:30 AM

It always gets the next time rounded to Calendar interval.

- Todd
John Sindelar
SeedCode

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: