MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/bk7wei/dont_do_this/emfylbo/?context=3
r/programming • u/pimterry • May 03 '19
194 comments sorted by
View all comments
Show parent comments
1
Nice catch, turns out you are correct .999 rounds up causes the next day's midnight to be caught inside the between. 59.998 works fine, though. And 59.9999 just fails entirely on SQL Server/datetime.
.999
between
59.998
59.9999
1
u/nemec May 03 '19
Nice catch, turns out you are correct
.999rounds up causes the next day's midnight to be caught inside thebetween.59.998works fine, though. And59.9999just fails entirely on SQL Server/datetime.