Alexander Stolte Expert Licensed User Longtime User Jan 8, 2023 #1 i have a time interval "1570051184.79484" and this i want to convert to ticks, how can i do this?
Solution klaus Jan 8, 2023 As TimeInterval represents seconds and Ticks are milliseconds, I would multiply it by 1000.
klaus Expert Licensed User Longtime User Jan 8, 2023 #2 As TimeInterval represents seconds and Ticks are milliseconds, I would multiply it by 1000. Upvote 1 Solution
E emexes Expert Licensed User Longtime User Jan 8, 2023 #3 klaus said: As TimeInterval represents seconds and Ticks are milliseconds, I would multiply it by 1000. Click to expand... As 1570051184 milliseconds is already 18 days, and multiplying that by 1000 would be 49 years, and @Alexander Stolte is less than half that age, I would check first what sort of time span we are expecting, to be sure, to be sure. ? Upvote 0
klaus said: As TimeInterval represents seconds and Ticks are milliseconds, I would multiply it by 1000. Click to expand... As 1570051184 milliseconds is already 18 days, and multiplying that by 1000 would be 49 years, and @Alexander Stolte is less than half that age, I would check first what sort of time span we are expecting, to be sure, to be sure. ?
Alexander Stolte Expert Licensed User Longtime User Jan 8, 2023 #4 This is my source date: 2019-10-02 21:19:44 +0000 converting it with the timeIntervalSince1970 property gets: 1570051184.79484 and multiply by 1000 and converting it back to string gives me: 2019-10-02 23:19:44 +0200 it works Upvote 0
This is my source date: 2019-10-02 21:19:44 +0000 converting it with the timeIntervalSince1970 property gets: 1570051184.79484 and multiply by 1000 and converting it back to string gives me: 2019-10-02 23:19:44 +0200 it works
Alexander Stolte Expert Licensed User Longtime User Jan 8, 2023 #5 emexes said: Any idea why the time zone offset changed? Click to expand... because the source time is in utc and its converted to my timezone wich is UTC +2 Google Search Upvote 0
emexes said: Any idea why the time zone offset changed? Click to expand... because the source time is in utc and its converted to my timezone wich is UTC +2 Google Search