Convert it to dateitems, then back again. 

Bob S


> On Jul 29, 2024, at 2:09 PM, Paul Dupuis via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Follow up question/request:
> 
> put the internet date into tTimestamp -- stores something like Mon, 29 Jul 
> 2024 16:49:52 -0400, where the -0400 is the time zone offset
> 
> Anyone have some already written code to convert this to a time in GMT (i.e 
> where the time zone offset is +0000, i.e. Mon, 29 Jul 2024 20:49:52 +0000)?
> 
> It is adding the offset to the hours and minutes, but you have to handle 
> carry over, potentially adding or subtracting a day.
> 
> If the best approach converting to seconds and the doing the math and 
> converting back? (I think this is the answer)
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to