The date on the Pi Bridge will most likely be correct (although it does have an option not to support years after 1997 for compatibility with the original "short Acorn era" date range of 1981 to 1996) but the Acorn *DATE utility hasn't been updated to take this into account.
The file server date is returned as two bytes, one byte for day of the month and the second byte as 4 bits for month and 4 bits for the year, giving the 0-15 date range mentioned as an offset from 1981.
Later, 7 bit years were introduced, but the additional 3 bits had to be stored in the top 3 bits of the byte for date in the month, which doesn't get masked off by things like the Date utility, which would have assumed the unused bits were 0, so the date and day of the week go wrong, as well as the year which is being calculated only using the original 4 bits of year offset.
I was in the process of disassembling *DATE at the end of last year, with the intention of adding the 7-bit year support, but I didn't think I could fit it all in the 512 bytes available so I didn't finish it.
SJ Research's *TIME utility will correctly display the time and date, but doesn't include the day of the week.
The file server date is returned as two bytes, one byte for day of the month and the second byte as 4 bits for month and 4 bits for the year, giving the 0-15 date range mentioned as an offset from 1981.
Later, 7 bit years were introduced, but the additional 3 bits had to be stored in the top 3 bits of the byte for date in the month, which doesn't get masked off by things like the Date utility, which would have assumed the unused bits were 0, so the date and day of the week go wrong, as well as the year which is being calculated only using the original 4 bits of year offset.
I was in the process of disassembling *DATE at the end of last year, with the intention of adding the 7-bit year support, but I didn't think I could fit it all in the 512 bytes available so I didn't finish it.
SJ Research's *TIME utility will correctly display the time and date, but doesn't include the day of the week.
Statistics: Posted by BeebMaster — Mon Feb 17, 2025 12:03 am