Evaluating time (dateItems)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
hamlynart
Posts: 101
Joined: Wed Mar 19, 2008 7:10 pm
Contact:

Evaluating time (dateItems)

Post by hamlynart » Wed Apr 09, 2008 5:00 pm

Hi Folks,

Its easy to evaluate if one number is higher or lower than another but how do I evaluate if one time is earlier or later than another?

Jim H

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Apr 09, 2008 5:12 pm

Hi Jim,

Convert the time to seconds before making any comparisons or calculations with it.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

hamlynart
Posts: 101
Joined: Wed Mar 19, 2008 7:10 pm
Contact:

Evaluating time (dateItems)

Post by hamlynart » Wed Apr 09, 2008 5:27 pm

Wow that's brilliant. I haven't tried it yet but it will certainly work. Looks like I've got a whole lot of scripting to do - wish I'd asked sooner.

Thanks a million

Jim

Post Reply