i don't want transform time to ticks... i want a value 0 to 86400(000) to transformed into time... So i want 0 to represents 00:00:00 and not 02:00:00...
Each second is 1000 ticks, so each minute is 60 000 ticks, and so on...
Date time has methods that allow you to get the tick count from a string like "00H05m42s" and also can provide the time string from a ticks count...
Do explore the DateTime keyword and methods, they are what you need
dim gtz as datetime.gettimezone 'this way we can after reset the timezone
datetime.settimezone(0h) 'we set te timezone to 0
Do our maths here
datetime.settimezone = gtz ' we reset the timezone to its original value