I believe I have found an error in the CAA DTUtils GetDayOfWeek function. According to the documentation, it should return 0-6 for days of the week, Sunday-Saturday. Today, I'm getting a return value of 7, and an error of DTU_ERROR_UNKNOWN.
I have library version 3.5.12.0. Anyone else have this problem?
@ThK you seem to have access to this developer database. Can you explain why this kind of information is not publicly available? I used the CAA library because I made the assumption that a date and time utility would have been tested against dates and times, leap years being one of the most obvious tests. Knowing that it doesn't work, I don't see the use of it--I might as well write my own function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe I have found an error in the CAA DTUtils GetDayOfWeek function. According to the documentation, it should return 0-6 for days of the week, Sunday-Saturday. Today, I'm getting a return value of 7, and an error of DTU_ERROR_UNKNOWN.
I have library version 3.5.12.0. Anyone else have this problem?
Last edit: tvm 2020-02-29
Hi,
Yes, it is an known bug.
The entry in our developer database is:
CDS-47688: Library: CAA DTUtility GetDayOfWeek returns wrong weekday for leap day
Regards Thomas
@ThK you seem to have access to this developer database. Can you explain why this kind of information is not publicly available? I used the CAA library because I made the assumption that a date and time utility would have been tested against dates and times, leap years being one of the most obvious tests. Knowing that it doesn't work, I don't see the use of it--I might as well write my own function.
For anyone who needs to replace it, here's a function that works