In the instant case, the employee might have been paid all benefits applicable for retirement but died at 11:00 pm, probably at night. In the case of 11:00 am, it is daytime and falls within working hours, thus benefits on death can be claimed. However, at 11:00 pm, the employee is not eligible for death benefits.
Furthermore, the retirement order contains the date as the last working day with AN and not FN, clearly indicating that the employee is not expected to continue working the following day. The term of service ceases at the company's working hours, typically around 5 to 6 pm in this case.
If Sunday or any National Holidays fall on the last day of retirement superannuation, the day preceding it will be treated as the last working day.
I hope this clarifies your doubts.