busarider29
Lifetime Supporting Member
Greetings experts,
Attempting to calculate a future date and time based on number of days, hours, and minutes "from now". As just an example, what is the date and time 22 days, 13 hours, and 17 minutes from now? I'm using TwinCAT (Codesys) and also have the OSCAT library, which has a handful of time and date related functions. I've gotten started on some coding for it already, but it's beginning to look like it's going to get more complicated than I first thought, unless there's an "easy" way and I'm just doing it the 'hard' way again. So before I perhaps start making it more difficult and messy than what it should be, I thought I'd ask has anyone done something similar, perhaps already have similar function they could share?
It's really late, so perhaps after some shut eye, it will come to me better.
Thanks.
Attempting to calculate a future date and time based on number of days, hours, and minutes "from now". As just an example, what is the date and time 22 days, 13 hours, and 17 minutes from now? I'm using TwinCAT (Codesys) and also have the OSCAT library, which has a handful of time and date related functions. I've gotten started on some coding for it already, but it's beginning to look like it's going to get more complicated than I first thought, unless there's an "easy" way and I'm just doing it the 'hard' way again. So before I perhaps start making it more difficult and messy than what it should be, I thought I'd ask has anyone done something similar, perhaps already have similar function they could share?
It's really late, so perhaps after some shut eye, it will come to me better.
Thanks.