AFAIK, that is an operating system function...and those date/times are stored with the file attribuutes by the OS. You can view the data in Mac Finder or Windows Explorer... or from command line in either OS.
AC 28 USA and earlier • macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators