sorting internet dates chronologically

Alex Tweedly alex at tweedly.org
Mon Dec 9 17:53:24 EST 2013


Warning : untested .... typed straight into email not in the IDE

write a function like
function returnAsSeconds p
   convert p to seconds
   return p
end returnAsSeconds

and then do something like
    sort lines of myVar by returnAsSeconds(item 1 of each)
(or whatever ..)

-- Alex.

On 09/12/2013 22:40, FORD JR., CURT wrote:
> So I've got data in the form of internet dates:
>
>
> Mon, Nov 12, 2012 3:27:21 AM
>
>
> Is there a relatively straightforward way of sorting them chronologically? Getting the months converted to numbers isn't a problem but I thought I'd check if anyone has a handy function before wracking my brain more... thanks!
>
>
> Curt
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list