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.
One of the forum moderators
AC 27 USA and earlier • macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB