Date and time format question

Paul Dupuis paul at researchware.com
Mon Jul 29 17:09:37 EDT 2024


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)





More information about the use-livecode mailing list