for a certain programming job I have in mind, I need to log some data and write it to a file. I've got that part but I needed to find a way to get the system time. After ages of searchin I managed to find a method that i could understand :rolleyes: and used it.
Heres the problem: The date of part of the code seems to work ok, with it working. But when the time is displayed, the hour value is one lower than my system time. eg. at 18:00 the time is 17:00
I remembered about daylight saving times but I would have thought that it would read directly from my time (which is correct). I just want to know whether you get the same result or whether its just some freak anomaly with my PC.
Heres an example exe which just displays time
(sorry about the file size still not sorted that out)
Heres the problem: The date of part of the code seems to work ok, with it working. But when the time is displayed, the hour value is one lower than my system time. eg. at 18:00 the time is 17:00
I remembered about daylight saving times but I would have thought that it would read directly from my time (which is correct). I just want to know whether you get the same result or whether its just some freak anomaly with my PC.
Heres an example exe which just displays time
(sorry about the file size still not sorted that out)