Having worked in banks as a Personal Banking Officer and Assistant Branch Manager, I can only tell you that all credits to ones account are posted before any debits are posted. For
that business day. Even electronically all is "settled" at the end of the business day.
The quirk is...some banks end their business day at say...3pm. If you were to make a deposit
after that time, either in person or via an ATM machine, your
credit would not be acknowledged until the
next business day and some items posting to your account on one day may not be honored by the bank if sufficient funds are not shown on said date.
If you have a good relationship with your bank and/or your banker, they may take notice that a deposit was made after their business day ended and pay any items against the account that may otherwise have been returned for insufficient funds.
If you don't yet know your bank or banker, you may want to take the opportunity to build a relationship with them so you can give them the "heads up" that you did make a deposit but it was after the close of their business day and ask them to honor (pay) any items that may have come in before their close of business.
If they are hard nosed, they may pay, but still charge you a fee.
You now...I just realized...this may be way more info than you were asking for, but I hope it helps!