On Unix, if the file is older than (I think) 6 months, you only get the date and year the file was last changed, not the time and date. Windows gives you the date and time, no matter how old the file.
Sorry but you'll find that both Windows and Unix have the concept of an epoch (although in Windows case it is "artificial". In both systems the C-based time() call will return the number of seconds since 1/1/1970.
From memory some versions of DOS (the PC version not the IBM mainframe version) used to base the epoch on 1/1/1980 but I can't remember when this changed (such are the perils of old age)
thx for the prelude.
Basically I was gunning for the seconds.micro seconds[hh:mm:ss:nn etc] etc format, but I understand both are nearby the same except (or in some cases ditto) for the landmark each one chooses to put the timestamp on. and the C based time call is prevelant in both the OS.
Thx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.