[CODE] cool elapsed function

Ralf Bitter rabit at revigniter.com
Tue Dec 18 04:08:43 EST 2012


Hi Jacqueline,

may I invite you to check out the rigTimespan() function
in the date helper of revIgniter?
You would have to comment out the line "get rigLangLoadLang("date")"
and to replace all calls to rigLangLangLine() with whatever time labeling
you need.

Ralf



On 18.12.2012, at 03:55, J. Landman Gay <jacque at hyperactivesw.com> wrote:

> On 12/17/12 10:46 AM, Andre Garzia wrote:
> 
>> the function is called elapsed and you can use it to figure out if a
>> certain amount of time passed between two timestamps.
> 
> I'd like a function that returns years, months, and days elapsed. I wrote a quick one that gets the number of days and divides by 30 to get months and days but it isn't very accurate. Since it's just for me I haven't gone back to fix it. Anyone have one already written?
> 
> 





More information about the use-livecode mailing list